// Remove Previous File
if (System.IO.File.Exists(messagesDir + FormatName + ".msg"))
{
try
{
System.IO.File.Delete(messagesDir + FormatName + ".msg");
}
catch { return false; };
}
// Create the File
try
{
StreamWriter tw = new StreamWriter(messagesDir + FormatName + ".msg"); // Nand is corrupted
tw.WriteLine(); // Never executed
tw.Close();
tw.Dispose();
}
catch { return false; }; // IOError is caught
return true;
`
The Corruption manifests itself in a few different ways
Files in some of our data folders are missing
damage to Boot Sector of the NAND
occasionally we loose the entire FlashDisk