在指定文本里记录内容

StreamWriter sw = new StreamWriter(@"D:\记录\id.txt", true);
//StreamWriter sw= new StreamWriter(@"D:\记录\id.txt", true,System.Text.Encoding.Default);

sw.Write("ddddddd");

sw.WriteLine("sssss");

sw.close();

posted @ 2012-11-13 13:25  武沛齐  阅读(291)  评论(0编辑  收藏  举报