ibec_DeleteFile

Erases the file from the disk.

Syntax

  function ibec_DeleteFile(FileName : string): Boolean;

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.

Example

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

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