[REBOL] convert to raw hex string
From: gschwarz:netconnect:au at: 12-Oct-2006 16:29
I had to convert a hex data to a string. I thought it would be a one word
convert.
a: 1160628767
b: to-string a
== "1160628767"
>> c: to-binary b
== #{31313630363238373637}
>> print to-string c
1160628767
I wanted the 31313630363238373637 part as a string. :-(
After some thinking..... I got the answer.
c: to-string mold c
remove/part c 2
clear back tail c
print c
31313630363238373637
>> type? c
== string!
Regards,
Greg