Question: 2 ] Add the count Suppose you have a text file like this: 3 Alice in Chains Yellow Submarine The show must go on Where
Add the count
Suppose you have a text file like this:
Alice in Chains
Yellow Submarine
The show must go on
Where the first number indicates the number of lines can be a different number
Make a program to read the file for read, close he file, count the letters, open the file again to append, and write a message saying how many letters it has, so the file will end like this:
Alice in Chains
Yellow Submarine
The show must go on
The lines have letters.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
