meta data for this page
  •  

ibec_fs_CloseFile

Closes the file opened with the ibec_fs_OpenFile function.

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.

Syntax

  function ibec_fs_CloseFile(FileHandle : variant): variant

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