The information may be written previously, but there is no guarantee about this, as the data to be written may be buffered by different mechanisms. Only after closing the file you can guarantee to a certain degree that data is actually written to the harddisk.


Always learn from history, to be sure you make the same mistakes again...