fileExists()

Returns true if the file filename exists, otherwise returns false. It does not open the file, although the process of testing for the file's existence will internally open and close it.

Syntax:
variable = fileExists( filename )

Example:
' check if the file exists
if not fileExists( "myfile.txt" ) then 
print "The file \"myfile.txt\" does not exist."
end if