Advertisement
Guest User

Untitled

a guest
Nov 15th, 2018
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. Write a program that reads text from one file and writes an edited version
  2. of the same text to another file. The edited version is identical to the unedited
  3. version except that every string of two or more consecutive blanks
  4. is replaced by a single blank. Thus, the text is edited to remove any extra
  5. blank characters. Your program should define a function that is called with
  6. the input- and output-file streams as arguments. If this is being done as a
  7. class assignment, obtain the file names from your instructor
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement