FILE_EXISTS

Returns a 1 if a file exists, and a 0 if it doesn't.

Format

FILE_EXISTS (File Name)

Argument

 
File Name
The name of the file you're looking for.

Examples

For the following examples, assume that a file named aview.log% exists, and avkiew.log% does not.
 
Function
FILE_EXISTS(aview.log%)
Result
1
 
Function
FILE_EXISTS(avkiew.log%)
Result
0