Unit 'sysutils' Package
[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] [#rtl]

FileFlush

Synchronize file contents to disk.

Declaration

Source position: filutilh.inc line 276

function FileFlush(

  Handle: THandle

):Boolean;

Description

FileFlush can be used to force the operating system to write any cached changes to file Handle to disk. It returns True if the operation completed succesfully. Note that not all operating systems support this operation.

Errors

On error, check the GetLastOSError function result for more information about the error.

See also

FileClose

  

Close a file handle.

FileWrite

  

Write data from a buffer to a given file handle.

FileOpen

  

Open an existing file and return a file handle.


Documentation generated on: Nov 23 2024