windows里面如何把数据保存到用户本地呢?
然后再怎么取出来?
谁能给个现成的实例看看
谢谢了!!
------解决方案--------------------System.IO.File.WriteAllLines("c:\\1.txt", new string[] { "abc" });
string[] s = System.IO.File.ReadAllines("c:\\1.txt");
MessageBox.Show(s[0]);
------解决方案-------------------- StreamWriter writer = new StreamWriter(@"E:\test.txt");
writer.WriteLine("hello");
writer.Close();
writer.Dispose();