FLUSH function

Purpose:

FLUSH forces any data held in a write to file buffer to be written to the file. The file remains open after FLUSH has executed.

Syntax:

RetVal = FLUSH(hFile AS FILE)

Return Value:

  • Data type: INTEGER
    RetVal If successful, 0. If not successful, EOF is returned and errno is set to indicate the error.

Parameters:

  • Data type: FILE
    hFile The handle of file to be flushed.