Re: Reading hex values from a file
Re: Reading hex values from a file
- Subject: Re: Reading hex values from a file
- From: Andrew Farmer <email@hidden>
- Date: Sat, 8 Jan 2005 01:01:51 -0800
On 07 Jan 2005, at 22:07, Jon wrote:
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).
That sounds like it should work.
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.
That doesn't sound right. Are you sure that the program that is reading
the characters isn't interpretting them as UTF-8?
(Sample code would be nice, too. Show us what you're doing.)
Attachment:
PGP.sig
Description: This is a digitally signed message part
_______________________________________________
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