Count number of letters and numbers in a file
I wanted to know if there is a better way to code this situation of counting the number of occurances of each letter(case insensitive) and each number in a file, disregarding other characters. So far I have it completed by turning each line of the file into a string, than using loops, if-else logic, and isalpha and isdigit to walk through each string char by char to do this, updating as i go along. My question is there a simpler code to do this? I am fairly new to C programming. Thanks for help.