FlushFile(id)
id
and re-adjusts the file cursor. It is important that you call this
function if you switch between buffered and unbuffered IO on the same
file. If you do not use SetIOMode() at all, you do not have to worry
about flushing buffers either because everything will be done
automatically by the file system if you only use buffered IO.