Contents - Index


FileExists

 

 

The FileExists function requires one argument, which can be a string constant or string variable that contains the name of a file stored on the disk.  The function returns 1 (true) if the file is found;  otherwise it returns 0 (false).  If directory information is not provided with the file name, EES will look in all of the directories that have been opened since it was started.

 

This function can be most usefully applied in Functions or Procedures within an IF-THEN-ELSE statement.  It can also be used in logic constructs within a set of macro instructions in the Professional license.

 

Example:

 

T$='C:\TEMP\Test.EES'

FE=fileexists(T$)