FileExists

Top  Previous  Next

FileExists returns true if the file or folder exists, and false if it does not.

 

Syntax

 

 exists = FileExists( path )

 

Parameters

path

 

the full path of the file or folder

 

 

 

returns

 

true if the file or folder exists

 

Examples

 

IF FileExists( fileManager.DefaultFolder + "test.txt" ) THEN

 PRINT "File Exists"

ELSE

 PRINT "File does not exist."

ENDIF