📅  最后修改于: 2022-03-11 14:49:11.011000             🧑  作者: Mango
代码示例1
string text = File.ReadAllText("test.txt");
text = text.Replace("some text", "new value");
File.WriteAllText("test.txt", text);