ibec_fs_CloseFile

Closes the file opened with the ibec_fs_OpenFile function.

Syntax

  function ibec_fs_CloseFile(FileHandle : variant): variant

Description

The ibec_fs_CloseFile function closes the file opened with the ibec_fs_OpenFile function. This function always returns 0.

This function now supports files larger than 2 GB.

Example

  execute  IBEBlock
  as
  begin
    FileName = 'C:\mydata.txt';
    FH = ibec_fs_OpenFile(FileName, __fmCreate);
    if (not FH is NULL) then
    begin
      ibec_fs_Writeln(FH, 'just a test');
      ibec_fs_CloseFile(FH);
    end
  end

back to top of page
<< ibec_RenameFile | IBEBlock | ibec_fs_Eof >>