How to write into an existing textfile in windows phone?
问题 If this is the code in opening a textfile "word.txt" in my solution explorer. Stream txtStream = Application.GetResourceStream(new Uri("/sample;component/word.txt", UriKind.Relative)).Stream; using (StreamReader sr = new StreamReader(txtStream)) { string jon; while (!sr.EndOfStream) { jon = sr.ReadLine(); mylistbox.ItemSource = jon; } } How do i write and append in the existing textfile? 回答1: Here is an example public static void WriteBackgroundSetting(string currentBackground) { const string