📌  相关文章
📜  c# 创建一个文本文件 - C# 代码示例

📅  最后修改于: 2022-03-11 14:49:18.255000             🧑  作者: Mango

代码示例2
// 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);