Returns a string array containing the names of all files matching a specified file description.
Windows Users: If a filename or directory name used in the file specification string contains a space, the entire string must be enclosed in quotes (either single or double quotes). For example, to find files in the directory:'Visual Numerics\wave\xres'
, you must use the command:
files=FINDFILE('"\Visual Numerics\wave\xres"')
UNIX Users: Under UNIX, FINDFILE uses the shell specified by theSHELL
environment variable (or/bin/sh
ifSHELL
is not defined) to search for any files matching file_specification.
OpenVMS Users: Under OpenVMS, FINDFILE uses the command language interpreter.
test.c
and test_2.c
, in your current directory.
x=FINDFILE('*.c', Count=cntr) PRINT, x
test.c test_2.c
PRINT, cntr
2