Please use code blocks when you post code.

What happens if you don't use a cast?
How many characters does fgetc return from the file?