• 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
Reading hex values from a file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Reading hex values from a file


  • Subject: Reading hex values from a file
  • From: Jon <email@hidden>
  • Date: Fri, 7 Jan 2005 23:07:20 -0700

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


  • Follow-Ups:
    • Re: Reading hex values from a file
      • From: Andrew Farmer <email@hidden>
  • Prev by Date: Re: NSTask with non-ASCII paths
  • Next by Date: Re: NSTask with non-ASCII paths
  • Previous by thread: [SOLVED] Re: NSTableView, binding, and tooltips
  • Next by thread: Re: Reading hex values from a file
  • Index(es):
    • Date
    • Thread