Sign in Join
FPDoc Onlineexperiment

FileFlush function

In unit sysutils

Synchronize file contents to disk.

Declaration

pascal
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

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.