In this case, he wants to read strings, store them, and then print them in reversed order, or read the whole file into a buffer, change all the newlines to nul chars, then scan from the back of the buffer, printing each string as a line, or ....