📜  c# using file.io - C# 代码示例

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

代码示例1
using System.IO;

using (StreamReader reader = File.ReadAllText(path))
{
  //now your file will be closed correctly, 
 // without having to call .close()
}