I am developing a smart device application in windows mobile 6.5 with .NET CF 3.5 using C#. user will use this application to write xml file to storage card, every day around have 5000 xml files to be written to storage card. but there have a problem I can not find the root reason, that is sometimes write the file is zero size and also can not be opened these zero size files.
using (StreamWriter sw = System.IO.File.CreateText(@"\Storage Card\temp\filename01.xml"))
{
xmldocData.Save(sw);
sw.Flush();
sw.Close();
}
I will grateful if anyone can help?