Question 1. Write a program that reads the name of a text file, opens it for reading, then reads, counts, and prints the
Posted: Mon May 02, 2022 12:11 pm
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.