Chapter 7: Problem 9
Write a program that reads cach line in a file, reverses its lines, and writes them to another file. For example, if the file input. txt contains the lines Nary had a liftle lanb Its fleece was white as snow And everyuhere that Mary went The lanb was sure to go. and you run reverse input, txt output, txt then output, txt contains The lanb was sure to go. And everyuhere that Mary went Its fleece was white as snow Mary had a little lanb.
Short Answer
Step by step solution
Key Concepts
These are the key concepts you need to understand to accurately answer the question.