Link to home
Start Free TrialLog in
Avatar of mosfet
mosfet

asked on

problem with fgetc and getc and file reading

I open a file with fopen, and fgetc and getc won't read the value of 0x0d from the file. It acts like it's not even there and moves on to the next value instead. For example, if there is the newline values( 0x0d, 0x0a) in the file, and I try to read the 0x0d, it will read the 0x0a instead of it.
ASKER CERTIFIED SOLUTION
Avatar of 8051
8051

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of mosfet
mosfet

ASKER

I appreciate your response.