public class IO
{
public string Into(string temp)
{
FileStream fs=new FileStream("/系统日志.txt",FileMode.OpenOrCreate,FileAccess.ReadWrite);
StreamWriter sw=new StreamWriter(fs);
sw.WriteLine(temp);
sw.Flush();
sw.Close();
fs.Close();
return temp;
}
每次执行这个类的时候 往 记事本里面写入的东西都被覆盖掉
要怎么才能不被覆盖掉呀
求高手帮忙
{
public string Into(string temp)
{
FileStream fs=new FileStream("/系统日志.txt",FileMode.OpenOrCreate,FileAccess.ReadWrite);
StreamWriter sw=new StreamWriter(fs);
sw.WriteLine(temp);
sw.Flush();
sw.Close();
fs.Close();
return temp;
}
每次执行这个类的时候 往 记事本里面写入的东西都被覆盖掉
要怎么才能不被覆盖掉呀
求高手帮忙
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货