Hexadecimal and whatever...

new topic     » topic index » view thread      » older message » newer message

Okay. I get this BRILLIANT idea and decide to star reading bytes from files.
I need to make it a number, so I use bytes_to_int to change a set of four bytes.
Truth is, I'm seeing if I can read data in from a MIDI file (don't ask me
why), and I read in the integer 101053452 (well, not exactly), but I'm
supposed to get the hexadecimal 00000006. Anyways, I think the problem is
that I need to read the bytes directly into hexadecimal. Anyone know how to
do that?

P.S. Anyone know what I'm talking about?

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
The Reaper  (J. Lays)   http://www.geocities.com/TimesSquare/Alley/4444/
reaper at auracom.com      Check out my Euphoria Games page at:
            -= http://www.geocities.com/TimesSquare/Alley/4444/eugames.html
      ........................
     . .. -||..........__......  "There is a silence before a storm,
      . /  ||......../-- \\.::::  A calm that is spent in fear;
   . ..|   ||...... /    | |.:::  But if that time was spent running,
     .|  _-||.......||   / /.:::: There may be nothing to be afraid of."
    ..| |..||...... -\_- \ |\-.:::
     .| |.[< \ .../            \.::
      .||.|||\|\ |  -      - .  \.::::
     ...|.\|| |  \  |        |   |.:::.
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu