What I need is a way to make sure that the file has been written to disk.
I guess there is a disk-buffer in Blitz, which keeps track of all the bytes that have to be written to disk.
I think that when you write something to a file, it actualy gets written into that buffer instead.
Then, by the time this buffer gets full, all of its content is flushed into the actual disk.
That would be pretty smart.
BUT I need a way to make sure that the data has actualy been sent to the disk, even before the buffer gets full.
I need this because I am writting a very robust application, which needs to recover from power-failure.
Power-failures are critical in this application, because they tthey happen very often.
Thanks,
Rui
I guess there is a disk-buffer in Blitz, which keeps track of all the bytes that have to be written to disk.
I think that when you write something to a file, it actualy gets written into that buffer instead.
Then, by the time this buffer gets full, all of its content is flushed into the actual disk.
That would be pretty smart.
BUT I need a way to make sure that the data has actualy been sent to the disk, even before the buffer gets full.
I need this because I am writting a very robust application, which needs to recover from power-failure.
Power-failures are critical in this application, because they tthey happen very often.
Thanks,
Rui