Question: 4, Write a program that counts the number of characters, words, and lines in a file. Words are separated by Spaces. The program should prompt

4, Write a program that counts the number of characters, words, and lines in a file. Words are separated by Spaces. The program should prompt the user enter a file name. Here is a sample run: Enter a filename: test.txt 1777 characters 210 words 71 lines
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
