使用File中的AppendAllText方法
//打开一个文件,向其中追加指定的字符串,然后关闭该文件。如果文件不存在,此方法创建一个文件,将指定的字符串写入文件,然后关闭该文件。 public static void AppendAllText(string path, string contents);