Checks if a file exists. If the return value is 1, the file exists.
This function is a blocking function. It blocks the calling Cicode task until the operation is complete.
Syntax
FileExist(sName)
Name:
The name of the file to check.
Return Value
TRUE (1) if the file exists, otherwise FALSE (0).
Related Functions
Example
! Check if the file exists
IF FileExist("C:\Data\Report.Txt") THEN
! The file exists
END
See Also
Published June 2018