File : Count Character
Write a program to count the number of times a character appears in the File. (Case insensitive… ‘a’ and ‘A’ are considered to be the same)
Sample Output:
Enter the file name
Input.txt
Enter the character to be counted
r
File ‘Input.txt’ has 99 instances of letter ‘r’.
CREATE AN ACCOUNT TO GET NOTIFICATIONS ABOUT
NEW QUESTIONS AND ANSWERS.
DOWNLOAD ATTACHMENT FOR ANSWER: