Re: Reliability of small database system
- Posted by DerekParnell (admin) Aug 30, 2013
- 5893 views
DerekParnell said...
I'm having some issues with the standard library flush() function. It doesn't appear to be writing buffered output to disk in the Windows platform. More testing required.
It turns out that flush() is working quite okay. The problem I was having when using a file opened for "update". It appears that you have to do an explicit seek() prior to a write. Just relying on the file cursor left by reading bytes is not enough.