These issues are not related to isolated storage. In this respect, isolation storage works exactly the same way as a "regular" file or a file stream: if you remove power from a computer suddenly, and the file is not closed, the result is unpredictable. To commit stream changes to the file system, the method
Flush
is usually used.
This is because if stream bufferization used to improve performance. Most stream write operations go to the buffer and not committed to the hard drive immediately. The method
Flush
synchronized the buffers with the data on a drive.
Please see:
http://msdn.microsoft.com/en-us/library/system.io.isolatedstorage.isolatedstoragefilestream.aspx[
^],
http://msdn.microsoft.com/en-us/library/48cytchs.aspx[
^].
—SA