Flush File Function

Owning Palette: Advanced File VIs and Functions

Requires: Base Development System

Writes all buffers of the file identified by refnum to disk and updates the directory entry of the file associated with refnum.

The file remains open, and refnum remains valid. Data written to a file often resides in a buffer until the buffer fills up or until you close the file. This function forces the operating system to write any buffer data to the file.

 Add to the block diagram  Find on the palette
refnum is the file refnum associated with the file you want to flush.
error in describes error conditions that occur before this node runs. This input provides standard error in functionality.
refnum out returns refnum unchanged.
error out contains error information. This output provides standard error out functionality.