Page 1 of 1

Question 1. . Write a program that reads the name of a text file, opens it for reading, then reads, counts, and prints t

Posted: Mon May 02, 2022 12:05 pm
by answerhappygod
Question 1 Write A Program That Reads The Name Of A Text File Opens It For Reading Then Reads Counts And Prints T 1
Question 1 Write A Program That Reads The Name Of A Text File Opens It For Reading Then Reads Counts And Prints T 1 (61.3 KiB) Viewed 21 times
Question 1. . Write a program that reads the name of a text file, opens it for reading, then reads, counts, and prints the number of blanks (spaces). within the file. You may assume the input text file is in the same folder as your code. Question 2. Write a program that reads the name of a text file file_name, opens it for reading, then outputs a copy of your file with all lines double-spaced, so there's a blank line inserted between each line of the original file. Your output file should be named 'double_'+ file_name. You may assume the input text file is in the same folder as your code.