Write a program reads text from one file


Discuss the below:

Q: Write a 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 unedited version except that every string of two or more consecutive blanks is replaced by a single space. 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

Solution Preview :

Prepared by a verified Expert
C/C++ Programming: Write a program reads text from one file
Reference No:- TGS01937716

Now Priced at $20 (50% Discount)

Recommended (94%)

Rated (4.6/5)