Retrieves the last lines of a text file.