只给最经典的。楼上的些方法都不能满足“逐行”这两个字
public IEnumerable
{
StreamReader sr = new StreamReader("文件物理路径");
string str = null; string temp = null;
while ((temp = sr.ReadLine()) != null)
{
// System.Threading.Thread.sleep(3000);
yield return temp;
}
}