FILEEXISTS (return file existence)

Top  Previous  Next

 

FILEEXISTS( file )

FILEEXISTS

Returns TRUE if the file is available on disk.

file

An expression containing the DOS filename.

The FILLEEXISTS procedure returns true ('1') if the file is available on disk. If the file is not available, FILEEXISTS returns false ('').

Return Data Type:     LONG

Example:

#IF(FILEEXISTS(%SomeFile))

 #OPEN(%SomeFile)

 #READ(%SomeFile)

 !some source

#ENDIF

See Also:

Built-In Template Procedures