In my application I'm continually logging data to the hard drive. However I notice the data is not actually written to the disk until the file is closed. The log files are an hour long but I would like the data written to the disk at least every minute.
Is there a method of purging the buffer and forcing the data write?
Is there a method of purging the buffer and forcing the data write?