V
Vishal
Hi,
I have a file with a long list of hex characters, and I want to get a
file with corresponding binary characters
here's what I did:
.... x = line.rstrip('\n')
.... y = binascii.unhexlify(x)
.... df.write(y)
....
But what I get is all garbage, atleast textpad and notepad show that
I tried doing it for only one string, and this is what I am seeing on
the interpreter:
'\x01d'
I was expecting 'y' would come out as a string with binary
characters!!!
What am i missing here? Can someone please help.
Thanks and best regards,
Vishal
I have a file with a long list of hex characters, and I want to get a
file with corresponding binary characters
here's what I did:
.... x = line.rstrip('\n')
.... y = binascii.unhexlify(x)
.... df.write(y)
....
But what I get is all garbage, atleast textpad and notepad show that
I tried doing it for only one string, and this is what I am seeing on
the interpreter:
'\x01d'
I was expecting 'y' would come out as a string with binary
characters!!!
What am i missing here? Can someone please help.
Thanks and best regards,
Vishal