📅  最后修改于: 2022-03-11 14:48:42.291000             🧑  作者: Mango
using System.IO;
using (StreamReader reader = File.ReadAllText(path))
{
//now your file will be closed correctly,
// without having to call .close()
}