Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Reading hex values from a file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Reading hex values from a file



I need to read hex values from a file. I use fopen/fseek/fread/fclose to open and read my data (then convert the characters into hex). For some reason, the characters (before being converted into hex) are different from what I see in my hex editor... The characters fread puts into my character array are what I see if I open the file in text edit and look at the file. What am I doing wrong? Should I not be using fopen/fseek/fread/fclose? Is there another thing I should be using?

Any help appreciated,
jjoonathan

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden




Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.