Extensions Reference
Extensions Reference > fsFilesystem
fsFileExists
bool fsFileExists(string Filename);
Checks whether the specified file exists
The fsFileExists function checks the specified path and filename to see if it refers to a valid file.
Parameters
Filename
The path and filename to check. Remember to escape backslashes in any paths.
Return Value
True if the file exists, otherwise False. Bear in mind that local filesystem permissions may prevent the extension from finding the file.
Example Code
// Does C:\Sample.txt exist?
if(fsFileExists("C:\\sample.txt") == True)
{
// Yes it does
print "Sample file found";
}