Concept Flow - Flushing and buffering concepts
Start Program
Write data to buffer
Is buffer full or flush called?
No→Wait
Yes
Flush buffer to output
Continue or End
Data is first stored in a buffer. When the buffer is full or flush is called, data is sent to the output.
