Elizabeth Finn wrote:
> I need to read a file that is in binary format, and then convert some of
> the values into integer values. These values can range from 1 to 4 bytes.
>
> First question – is there an easy way to do this? I finally wrote my own
> little utility to handle multi-byte integer
"Elizabeth Finn" <[EMAIL PROTECTED]> wrote
> binary format, and then convert some of the values into
> integer values. These values can range from 1 to 4 bytes.
See the struct module, and for an exampole the binary file
sidebar in the file handling topic of my tutor. But caveat:
struct needs
This is probably a newbie question, and I apologize for the length but I have
consulted several books / sites and havent found a good answer. I need to read
a file that is in binary format, and then convert some of the values into
integer values. These values can range from 1 to 4 bytes.