Reverse each line of a text file.