On creating, writing sequential files to local drives on a Windows 7 PC, fflush() has no effect i.e it does not flush the buffer.
Adding fflush() commands makes no difference.
If any other non Windows PC is accessed e.g the server, then there are no problems.
On closing the file the end of the file is not written fully. On occasion another part of the file is missing, but only if a seek to the header to change values has been made just prior to closing.
I have found references to this problem on the net, but the only solution recommended is to disable caching, which seems a bit crude, and could cause problems elsewhere.
Has anyone found a workaround or a Microsoft patch?