Question: The text file review.txt contains multiple strings. However, each string is its own line of the text file. For example, the review.txt contains: This is
The text file review.txt contains multiple strings. However, each string is its own line of the text file. For example, the review.txt contains:
This
is
a
review
Phase 1
Write the C++ code to open review.txt and read the contents of a text file. You must store the input data into a string array. Finally, create a new text file called modify.txt that contains the message above in one line. Each string word must be separated by space in the new text file.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
