using (StreamWriter SW = new StreamWriter(new IsolatedStorageFileStream("Sample.doc", FileMode.Create, FileAccess.Write, ISF))) { string text = "Hi this is the text which will be written to the file and we can retrieve that later"; SW.WriteLine(text); SW.Close(); MessageBox.Show("Your Text Has Been Saved Successfully To The File"); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)