Reading in hex values

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Susan

    Reading in hex values

    I'm trying to read in a file that, towards the end, has a bunch of hex values
    that translate to . And example of a line is:
    sh.fX...wu.....
    What I really want are each of the associated hex values:
    73 68 8C 66 58 E8 1E F6 77 75 82 FD F0 DF D7 DB
    Does anyone know how I can read these in? I've tried both a stream reader
    and a binary reader, but I loose the .'s which, beleive it or not, are very
    important. ANy ideas?

    Thank you,
    Susan
  • Susan

    #2
    RE: Reading in hex values

    Duh.... never mind. I should have used readbytes instead of the straight
    read. Sorry for my senile moment.....

    "Susan" wrote:
    [color=blue]
    > I'm trying to read in a file that, towards the end, has a bunch of hex values
    > that translate to . And example of a line is:
    > sh.fX...wu.....
    > What I really want are each of the associated hex values:
    > 73 68 8C 66 58 E8 1E F6 77 75 82 FD F0 DF D7 DB
    > Does anyone know how I can read these in? I've tried both a stream reader
    > and a binary reader, but I loose the .'s which, beleive it or not, are very
    > important. ANy ideas?
    >
    > Thank you,
    > Susan[/color]

    Comment

    Working...