62,046
社区成员
发帖
与我相关
我的任务
分享
StreamReader streamReader = new StreamReader(@"G:\aa.txt");
string line = string.Empty;
List<string> lines = new List<string>();
while ((line = streamReader.ReadLine()) != null)
{
if (!string.IsNullOrEmpty(line.Trim()))
{
lines.Add(line);
}
}
去掉空行然后再处理