First page Back Continue Last page Graphics
Buffer cont.
Similar on output.
- 1 byte at a time from program to buffer.
- 512 bytes from buffer to disk in one transfer.
Clearing the output buffer to make room for new output from the progam is called “flushing the buffer”
Normally flushing of an input buffer happens when you hit “enter”.
Normally flushing of an output buffer happens when you process “new line” \n
Can happen at unexpected times.
Old C : fflush(stdout)
C++ : osobj.flush( )