Your task is to read a file containing lines of text, and to write another file that contains these lines in reverse order. For example, if your input file contains the lines
Mary had a little lamb, its fleece was white as snow.
then your output file should contain the lines
its fleece was white as snow. Mary had a little lamb,