Returns 1 if file exists.
FILEEXISTS("filename")
"filename" |
- |
A string, the name of the file to test. |
An integer, 1 if file exists.
fileexists("readme.txt")
returns 1 if readme.txt exists in the current directory.
fileexists(gethome + "readme.txt")
returns 1 if readme.txt exists in home (installation) directory.
fileexists("E:\temp\readme.txt")
returns 1 if E:\temp\readme.txt exists.
FILEXISTS tests for file existence.
See DIREXISTS to test if a directory exists.