This content has been marked as final. Show 2 replies
gfdg wrote:That has been asked many, many times before. Please google a bit.
Is there any way to read last line from a text file. Actually i don't want to read line bye line.
Short answer: there's no trivial way, you'll have to guess and correct your guess to find the correct position of the last line.
If you're using linux, it's "tail" ;)