Icon FileExists

Unit: Internal

Available In: Server Applications

function FileExists(const FileName: String): Boolean

The FileExists function returns True if the file input parameter exists, and False if the file does not exist.

Information The specified file name should contain an absolute path. Relative paths are permitted, but they rely on the current working directory. The current working directory is a per-process setting and is not reliable in a multi-threaded setting like the web server.

Examples

X := FileExists('C:\temp\test.html');  // X is True
Image