// 判断文件是否为空
using (FileStream fs1 = new FileStream(文件路径, FileMode.Open))
{
using (StreamReader sr = new StreamReader(fs1))
{
if (sr.ReadToEnd() ==string.Empty)
{
//
}
}
}
标签:文件,验证,C#,sr,FileStream,为空,new From: https://www.cnblogs.com/CS-ComputerScience/p/17656856.html