Text streams
Writing a new record:
Because a new-line character has not been encountered to indicate the end-of-line,
fflush()
takes no action. The record is written as a new record when one of the following takes place:
A new-line character is written.
The file is closed.
Reading a record:
fflush()
clears a previous
ungetc()
character.
Parent topic:
Flushing records