![]() |
|
|
|
| ||||||
|
Welcome to the The ProgrammersTalk Community forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |
| Tags: hex, hexidecimal, reading |
![]() |
![]() | | LinkBack | Thread Tools | Display Modes | ![]() |
| |
| ||||
| I just did a quick search and saw on wikipedia, if you go to: Hexadecimal - Wikipedia, the free encyclopedia The find: Common Patterns and humor There's a little on it there but whether its want you want i don't know? Seems to make sense to me. Quote:
|
| The Following User Says Thank You to Lee For This Useful Post: | ||
MrPickle (04-10-2008) | ||
| |||
| That's hex - 0xFFFFFF = White, 0x000000 = Black __________________ Day Cares | Golf Courses | Disc Golf Courses | Campgrounds | Ice Rinks | Paintball Fields | Dentists | Plastic Surgeons | Aging Jokes Catholic Churches | Lutheran Churches | Methodist Churches | Episcopal Churches | Clean Jokes |
| |||
| There's no such thing as a hexadecimal file - the hex editor is just showing you a hexadecimal representation of your data, which, like all electronic data, is stored in a binary form (The 0x prefix is a form of notation to denote a number as being in hex/base-16 ). You can either read a file as raw data, one byte at a time, or as text. If opening it up in a text editor looks like nonsense, then you probably want to read it byte(s) at-a-time, into an unsigned char or array of unsigned char (Look up binary I/O in C++). - What you do with the data after that is entirely up to you - it requires precise knowledge of the format within which the file has data stored to make the data meaningful, and depends how you wish the data to be stored & represented after you've read it from the file. |
![]() |
| Thread Tools | |
| Display Modes | |
| |