Sorry, I'll try to clarify. I'm new to C.
I have a file with hexadecimal values, such as "3FFA" in it. I need to read these values one byte at a time, using my C program. I'm using fgetc() to do so.
So, I'm assuming fgetc() grabs the first byte. Now here's where I start to run into trouble. Is 3F considered the first byte, as it would be hexadecimal, or is 3 considered the first byte as it would be in ASCII?
If 3F is considered the first byte, is it just stored as 45 in binary? If this is the case, what if I have a random characters such as: "WXYZ"? How are they stored?
If 3 is considered the first byte, is it stored as 33 (ASCII code for 3 I believe) in binary? I'm assuming when fgetc() reads in a character from file, it reads it in as its ASCII code. But if I want A to represent a binary 10, then it's a problem if A is actually representing 95, or whatever its ASCII value is.
Hope that made more sense than my original post. Thanks for the help, I need it
