Write a program that reads each line in a file, reverses its characters, and writes the resulting line to another file. Suppose the user specifies input.txt and output.txt when prompted for the file names,
and input.txt contains the lines
Mary had a little lamb Its fleece was white as snow And everywhere that Mary went the lamb was sure to go.
After the program is finished, output.txt should contain
bmal elttil a dah yraM wons sa etihw saw eceelf stI tnew yraM taht erehwyreve dnA .og ot erus saw bmal ehT
1
Expert's answer
2020-12-28T02:39:50-0500
Dear Ching, your question requires a lot of work, which neither of our experts is ready to perform for free. We advise you to convert it to a fully qualified order and we will try to help you. Please click the link below to proceed: Submit order
Comments
Leave a comment