• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Reading hex values from a file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Reading hex values from a file (From: Jon <email@hidden>)

  • Prev by Date: Re: Cocoa programming-Add control at the run-time
  • Next by Date: periodic events
  • Previous by thread: Reading hex values from a file
  • Next by thread: periodic events
  • Index(es):
    • Date
    • Thread