Possible Duplicate:
How to read a text file reversely with iterator in C#
I need to read txt file more than 7 million lines from bottom to the top by just following line of code: I was wondering is the right way or shall i use iterator for this task? Some answers using iterator already in stackoverflow.
foreach (string line in File.ReadAllLines("read.txt").Reverse())
{
Console.WriteLine(line);
}