StatCounter

View My Stats

Wednesday, February 6, 2008

Text Reader in .NET

Text Reader in .NET


FileInfo File = new FileInfo("D:\\READ\\ec_books_new.txt");
if (File.Exists)
{
TextReader Tr = new StreamReader("D:\\READ\\ec_books_new.txt")
string Line;
Line = Tr.ReadLine();
while (Line != null)
{
Console.WriteLine(Line);
Line=Tr.ReadLine();
}
}

No comments: