Page 1 of 1

can someone help with this...strange problem

Posted: Thu Jul 01, 2004 12:35 pm
by mcog_esteban
i have a file full of HEX bytes, like this:
295D 796F 61FE 00E1 3831 7C6A
9A35 2F56 5003 3625 722D
what i want to do is this:
starting with the second byte

(5D*29) + (79*5d) + (6f*79) + ....
for each line
does anyone have any idea.

Posted: Thu Jul 01, 2004 12:45 pm
by feyd
I'd pull all the pairs out, convert them to integers, and run a for loop over the resultant array.