fileExists()

ファイルが存在するときtrue,そうでないときfalse。 ファイルはオープンされない。(ファイルの存在のテストでは内部的にオープンクローズされるため)

書式:
variable = fileExists( filename )

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