C#txt文件写入,若不存在则生成文件,若存在则直接追加写入
if (!System.IO.File.Exists(path))
{
FileStream fs1 = new FileStream(path, FileMode.Create,
FileAccess.Write
C#txt文件写入,若不存在则生成文件,若存在则直接追加写入
if (!System.IO.File.Exists(path))
{
FileStream fs1 = new FileStream(path, FileMode.Create,
FileAccess.Write