Question 1. Write a program that reads the name of a text file, opens it for reading, then reads, counts, and prints the
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
Question 1. Write a program that reads the name of a text file, opens it for reading, then reads, counts, and prints the
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.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!