Reading a binary file

Peter Hansen peter at engcorp.com
Thu Jun 26 15:48:09 CEST 2003


Sorin Marti wrote:
> 
> 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
[snip]

It would really be best if you could describe in more detail
what you are trying to do with this data.  Bytes are bytes,
and things like hex and binary are just different _representations_
of bytes, so whether you want binary, hex, decimal, or something
else depends entirely on the use to which you will put the info.

-Peter




More information about the Python-list mailing list