ibec_FileExists

Tests if a specified file exists.

Syntax

  function ibec_FileExists(FileName : string): Boolean;

Description

ibec_FileExists returns True if the file specified by FileName exists. If the file does not exist, the function returns False.

Example

  execute IBEBlock
  as
  begin
    FileName = 'C:\mydata.txt';
    if (ibec_FileExists(FileName)) then
      ibec_DeleteFile(FileName);
  end

See also:
Data Comparer using cursors
ibec_DirectoryExists

back to top of page
<< ibec_RemoveDirectory | IBEBlock | ibec_FileSize >>