If you just open a file using "r", then it is a text file, and translation from the operating system line termination (\n\r) to the ANSI-C standard (\n) will apply (you've seen this)
If you open the file in binary mode ("rb"), then this translation effect is turned off, and you should see every character in the file.
> while ( ch != characterCount )
What's this do?
Apart from an expensive way of saying characterCount = ch;
This being so, why not do
charNo [ ch ]++;
> while ( ch != EOF )
Try
Code:
while ( (ch=fgetc ( filepointer )) != EOF ) {
charNo[ch]++;
}