在指定文本里记录内容

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();

你可能感兴趣的:(记录)