|Do you know where your variables are?|
Force Commit file writesby fluffyvoidwarrior (Monk)
|on Jan 31, 2006 at 09:17 UTC||Need Help??|
fluffyvoidwarrior has asked for the
wisdom of the Perl Monks concerning the following question:
Can anyone tell me how to force a windows system to commit it's write buffers to disk. This doesn't work on windows ...
sysopen(FILE, $filename_path, O_RDWR | O_SYNC );
O_SYNC being undefined on win32. I don't care how the data is written (syswrite, print, write etc) so long as its actually committed to disk immediately by the OS.
Thanks again all ...