Get a last line from a text file