📅  最后修改于: 2022-03-11 14:49:18.255000             🧑  作者: Mango
// Create a file to write to.
string createText = "Hello and Welcome" + Environment.NewLine;
File.WriteAllText(path, createText);
...
// Open the file to read from.
string readText = File.ReadAllText(path);