I know that is not good practice to 'pull the power' but this is what happens in pubs,

I have jukebox software that saves to a file, now if the file is saved and then the power is lost (say within 15 seconds or so) when I then open the file in notepad (after reboot) the file is full of blank chrs of the length that it should be.

I imagine that this has something to do with write caching, but i have turned it off for the drive that is in question.

Also if I quickly open the file in notepad before the hard power off I can see all of the data before the power loss.

Whats happening here? and how do I get around it?

Thanks,
Kris