📅  最后修改于: 2022-03-11 14:59:18.604000             🧑  作者: Mango
string file = File.ReadAllText(@".\path\to\file.txt");
file = file + "Some string I'm adding to my file";
File.WriteAllText(@".\path\to\file.txt", file); // note this overwrites the file