ibec_FileExists

Tests if a specified file exists.

Description

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

Syntax

function ibec_FileExists(FileName : string): Boolean;

Example

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