Question: Program : Blank Removal A text file contains a bunch of characters. There are no tab characters within the file. Write a program that replaces
Program : Blank Removal
A text file contains a bunch of characters. There are no tab characters within the file. Write a program that replaces two or more consecutive blanks by a single blank. For example, in the input is:
Lets go to the club.
then the output would be:
Lets go to the club.
The input from this program should come from a file whose name has been supplied via argv[1]. The output from this program should go to standard output.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
