help files
Z505 | PasWiki | FUQ | Search | Main Docs | API Guide



[Overview][Constants][Types][Classes][Procedures and functions][Variables] Reference for unit 'sysutils' (#rtl)

FileExists

Check whether a file exists in the filesystem.

Declaration

Source position: filutilh.inc line 84

function FileExists(

  const FileName: String

):Boolean;

Description

FileExists returns True if a file with name FileName exists on the disk, False otherwise.

Errors

None.

See also

FileAge

  

Return the timestamp of a file.

FileGetAttr

  

Return attributes of a file.

FileSetAttr

  

Set the attributes of a file.

Example

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.

Notes

 No notes exist for this page yet. 





lufdoc, Powtils, fpc, freepascal, delphi, kylix, c/c++, mysql, cgi web framework docs, Z505