C#在txt类文件中追加内容
string path = "test.txt";
FileStream mystream = new FileStream(path, FileMode.OpenOrCreate);
StreamWriter myWrite = new StreamWriter(mystream);
myWrite.Write(strWriteLog);
myWrite.Close();
mystream.Close();
2022-10-01 18:47:14
C#在txt类文件中追加内容
string path = "test.txt";
FileStream mystream = new FileStream(path, FileMode.OpenOrCreate);
StreamWriter myWrite = new StreamWriter(mystream);
myWrite.Write(strWriteLog);
myWrite.Close();
mystream.Close();