在打开文本文件时,不覆盖之前的内容,只在后面添加新的内容
///
/// 追加文件
///
/// 文件路径
/// 内容
public static void FileAdd(string Path, string strings)
{
StreamWriter sw = File.AppendText(Path);
sw.Write(strings);
sw.Flush();
sw.Close();
sw.Dispose();
}
在打开文本文件时,不覆盖之前的内容,只在后面添加新的内容
///
/// 追加文件
///
/// 文件路径
/// 内容
public static void FileAdd(string Path, string strings)
{
StreamWriter sw = File.AppendText(Path);
sw.Write(strings);
sw.Flush();
sw.Close();
sw.Dispose();
}