meta data for this page
  •  

ibec_DeleteFile

Erases the file from the disk.

Description

The ibec_DeleteFile function erases the file named by FileName from the disk. If the file cannot be deleted or does not exist, the function returns False.

Syntax

 function ibec_DeleteFile(FileName : string): Boolean;

Example

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