MSDN says that FileStream.Flush(True)
"also clears all intermediate file buffers.".
What does "all intermediate file buffers" mean exactly?
It causes the file data that's buffered in the file system cache to be written to disk. That data is normally lazily written, based on the position of the disk write head. Having a gigabyte of cached data is technically possible so it can take quite a while. If this is important to you then consider the FileOptions.WriteThrough
option instead. It disables write caching completely. This can be very expensive; you'll discover how slow hard disks really are.