且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

C#写入文本文件

更新时间:2023-02-20 10:51:55

你应该数据附加到文件中,替换

You should append data to the file, replace
Quote:

new StreamWriter(1_forces_reelles_virtuelles.txt);

new StreamWriter ("1_forces_reelles_virtuelles.txt");

with

with

new StreamWriter ("1_forces_reelles_virtuelles.txt", true);





StreamWriter构造函数(字符串,布尔值) [ ^ ]。