I am writing a c# .net CF application for windows mobile 6, which does some file handling. I wanted to know if there is any built-in way to make the file handling robust against power failure. For instance, if there is a power failure while writing the file, the file contents should be intact without corruption(maybe there is loss of the data being written at the time of power loss, but not already existing data in the file). The next time the power is up, the file contents should be present as before the power failure.
Thanks in advance.