This FileExists function will return a TRUE = (1) value when the file, or folder does exist, and a FALSE = (0) value when the file or folder does not exists.

 

Syntax:

exists = FileExists( path )

 

Parameter:

Description:

path

The full path of the file or folder.

 

Example:

'  Does the "test.txt" exists in the fileManager's Default Folder?
IF FileExists( fileManager.DefaultFolder + "test.txt" ) THEN
  PRINT "File Exists"
ELSE
  PRINT "File does not exist."
ENDIF

Returns:

Return is TRUE when the File Exists is reported, and False when "Does Not Exists" is reported.

 

Links:

CopyFile, DeleteFile, EditFile, Extract, FileExists, FileSize, MoveFile, OpenFile

See Also:

General, File & Disk

 


Edit Time: 9/25/2017 09:09:58 AM


Topic ID#: 337

 

Created with Help & Manual 7 and styled with Premium Pack Version 2.80 © by EC Software