function FileExists(FileName: string): boolean;

 

This function checks if a file on disk exists.

 

Parameters

FileName

The full path of the file to check. Ex: 'C:\Files\MyDoc.txt'

 

Return value

True

The specified file exists

False

The specified file does not exist