471,347 Members | 1,772 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,347 software developers and data experts.

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
Dec 1 '05 #1
1 1503
Duh.... never mind. I should have used readbytes instead of the straight
read. Sorry for my senile moment.....

"Susan" wrote:
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

Dec 1 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

11 posts views Thread by Freddy Coal | last post: by
21 posts views Thread by Naya | last post: by
13 posts views Thread by swetha | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.