fileExists

Description

Returns 'true' if the file exists and 'false' otherwise.

Parameters

Return Type

Boolean (true/false)

Example

if(fileExists("C:/someFile.txt")){ print("The file exists!"); } else { print("The file does not exist!"); }

It is recommended that you use forward slashes ( / ) for file paths.

See also

Peacock