<< ibec_DirectoryExists | IBEBlock | ibec_FileSize >>

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

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