http://www.perlmonks.org?node_id=526688

fluffyvoidwarrior has asked for the wisdom of the Perl Monks concerning the following question:

Hello Monks,
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 ...