Question: Write a program that asks the user to enter the name of a file, and then asks the user to enter a character. The program

Write a program that asks the user to enter the name of a file, and then asks the user to enter a character. The program should count and display the number of times that the specified character appears in the file. Here is a sample run of the program: Enter file name: mydata.txt Enter character to count: a The character ' a ' appears in the file mydata.txt 17 times. Your program class should be named FileLetterCounter
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
