Quote Originally Posted by stanley1234 View Post
i can use fgetc and fgetchar too, maybe thats my mistake, the problem involves dealing with a binary file later so maybe im supose to use readf at that point
That sounds more correct. What matters with files is how you open them. There are different functions that make reading text files easier, like fgetc, that you know, and there are different functions that make reading binary files easier, like fread, that you know.

Use the right functions for the right file type.