R
Robbie
Anybody out there know of a way to read a text file starting from the
bottom of the file then going backwards line by line? I am reading
large log files in which the data I'm looking for is always near the
bottom.
I would like something like:
StreamReader sr = new StreamReader("MyFile.txt");
string line = sr.ReadLine(-1); <-- this functionality doesn't exist.
or
string line = sr.ReadPreviousLine();
Any ideas?
bottom of the file then going backwards line by line? I am reading
large log files in which the data I'm looking for is always near the
bottom.
I would like something like:
StreamReader sr = new StreamReader("MyFile.txt");
string line = sr.ReadLine(-1); <-- this functionality doesn't exist.
or
string line = sr.ReadPreviousLine();
Any ideas?