Question: Write a C++ program that reads text from one file and writes an edited version of the same text to another file. The edited version
Write a C++ program that reads text from one file and writes an edited version of the same text to another file. The edited version is identical to the un- edited version except that every string of two or more consecutive blanks is replaced by a single blank. Thus, the text is edited to remove any extra blank characters. Your program should define a function that is called with the input- and output-file streams as arguments. If this is being done as a class assignment, obtain the file names from your instructor.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
