C#输入流
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;
}
每次执行这个类的时候 往 记事本里面写入的东西都被覆盖掉
要怎么才能不被覆盖掉呀
求高手帮忙
------解决方案--------------------如果是追加,不是覆盖的话,我想应该用FileMode.Append