Cicode Programming Reference > Cicode Function Categories > File Functions Introduction > FileExist

FileExist

Checks if a file exists. If the return value is 1, the file exists.

Syntax

FileExist(Name)

Name:

The name of the file to check.

Return Value

TRUE (1) if the file exists, otherwise FALSE (0).

Related Functions

FileOpen

Example

! Check if the file exists
IF FileExist("C:\Data\Report.Txt") THEN
! The file exists
END

See Also

File Functions