A
Amy L.
Is there a way through .net to read a very large text file (400MB+)
backwards line by line. In system.io the filestream class has a "seek"
method but the only read method requires you to know how many bytes to read
in.
My problem is that the line length of this log file is not constant so there
is no easy way to read one line in. The only thing that is constant is that
each line is terminated by a carriage return.
If my only option was to use the filestream class I suppose I can read data
back in chunks and try to parse the data and determine lines...
Is there a better way?
Amy.
backwards line by line. In system.io the filestream class has a "seek"
method but the only read method requires you to know how many bytes to read
in.
My problem is that the line length of this log file is not constant so there
is no easy way to read one line in. The only thing that is constant is that
each line is terminated by a carriage return.
If my only option was to use the filestream class I suppose I can read data
back in chunks and try to parse the data and determine lines...
Is there a better way?
Amy.