C#在txt类文件中追加内容
程序员文章站
2023-11-04 13:49:52
string path = "test.txt"; FileStream mystream = new FileStream(path, FileMode.OpenOrCreate); StreamWriter myWrite = new StreamWriter(mystream); myWrit ......
string path = "test.txt";
filestream mystream = new filestream(path, filemode.openorcreate);
streamwriter mywrite = new streamwriter(mystream);
mywrite.write(strwritelog);
mywrite.close();
mystream.close();
上一篇: 转:我只是下了个订单,鬼知道我在微服务里经历了什么?
下一篇: 到底人参吃了会上火吗