Share
Explore BrainMass

I/O Streams in C++

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 Summary

It provides sample C++ codes that reads text from one file and writes an edited version of the same text to another file. The response was rated '5/5' by the student who originally posted the questions.

$2.19