Great thread! Binary is cool!

chaz

REBOL[] print enbase/64 #{26EB2D027A2D85EAFE44404E2FE1DA7247AB} ask []

At 06:00 PM 9/26/00 -0800, you wrote:
>Hi Jeff:
>Try playing with the following code:
>;===============================================================
>variable: #{
>524946462400000043444441666D742018000000010001005C774C0100000000
>B253000000020000332D0400
>}
>print reform["first four bytes:" copy/part variable 4]
>variable: skip variable 4
>print reform["next four bytes:" copy/part variable 4]
>print to-integer copy/part variable 4
>;===============================================================
>And of course, you can assign copy/part variable 4 to another word and
>convert it into an integer:
>>> second-integer: to-integer copy/part variable 4
>== 603979776
>I hope this helps...
>Tim
>[EMAIL PROTECTED] wrote:
>
>> If I read in a binary file I get this for example:
>>
>> variable: #{
>> 524946462400000043444441666D742018000000010001005C774C0100000000
>> B253000000020000332D0400
>> }
>>
>> How do I navigate this to get to specific values and extract them and store
>> them in variables?
>>
>> The best I could do is use
>> data: first variable
>>
>> BUT, I would like to be able to extract more than one at a time.
>>
>> Thanks,
>>
>> Jeff
>
>

Reply via email to