| [Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] | 
Check whether a particular file exists in the filesystem.
Source position: filutilh.inc line 130
| function FileExists( | 
| const FileName: UnicodeString | 
| ):Boolean; | 
| const FileName: RawByteString | 
| ):Boolean; | 
FileExists returns True if a file with name FileName exists on the disk, False otherwise. On windows, this function will return False if a directory is passed as FileName. On unices, passing a directory name will result in True. The rationale is that on unix, a directory is a file as well.
Note that this function accepts a single filename as an argument, without wildcards. To check for the existence of multiple files, see the FindFirst function.
None.
| 
 | Start a file search and return a findhandle | |
| 
 | Return the timestamp of a file. | |
| 
 | Return attributes of a file. | |
| 
 | Set the attributes of a file. | 
Program Example38; { This program demonstrates the FileExists function } Uses sysutils; Begin If FileExists(ParamStr(0)) Then Writeln ('All is well, I seem to exist.'); End.