版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/qq_34651026/article/details/76541735
string path = Application.StartupPath +".txt"
//string path = Application.StartupPath当前项目路径
FileStream fs = new FileStream(path, FileMode.Truncate, FileAccess.ReadWrite);
//path :文件的路径
f s.Close();
//关闭