How do I read multipli bytes from file?
Jens Arnfelt
jens.arnfelt at get2net.dk
Sun Dec 19 07:23:35 EST 1999
Hi There !
I have been working on an python program that reads Call Data Records from a
file!
Ex. the following values in hex (a telephone number encoded in BCD(Binary
Coded Dicimal) :
45 26 10 05 01 1f ff ff ff ff
The length of the fiels is 10 bytes.
I need to convert this into somthing readable in a single string. The result
should be!
'45261005011fffffff'
I've tryed with the string.unpack() but its return a list of bytes, not a
string.
Any help would apriciated
More information about the Python-list
mailing list