Reading a binary file

Sorin Marti mas at semafor.ch
Thu Jun 26 04:01:06 EDT 2003


Hi all,

I am quite new to python and very new to this list.

I've got following problem. I have a binary file which contains 
information I should read. I can open the file with

f = open ('cpu1db2.dat', 'rb')

That's no problem. But now I need the hex values of the binary file.

Is there a possibility to show hex-values of the bytes of a file?


Thanks in advance
    Sorin






More information about the Python-list mailing list