FILEEXISTS Function

Checks whether a specified file exists.

Category: External File
Returned data type: Character
Note: The returned value is true if the file exists.

Syntax

fileexists(<filename>)

Required Arguments

filename

the name of the file that you are checking to find out if it exists

Example

string filename

boolean rc_ok

 

filename="C:\doesexist.txt"

 

rc_ok = fileexists(filename) // outputs "true" if file exists