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:
Post a Comment