Flushing records

fflush() does not move data from an internal buffer to a memory file, because the data is written to the memory file as it is generated. However, fflush() does make the data visible to readers who have a regular or hiperspace memory file open for reading while a user has it open for writing.

Hiperspace™ memory files are fully buffered. The fflush() function writes data from the internal buffer to the hiperspace.

Any repositioning operation writes data to the hiperspace.

The fclose() function also invokes fflush() when it detects an incomplete buffer for a file that is open for writing or appending.