Re: [Tutor] newb - Problem reading binary files

2007-05-12 Thread Kent Johnson
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

Re: [Tutor] newb - Problem reading binary files

2007-05-11 Thread Alan Gauld
"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

[Tutor] newb - Problem reading binary files

2007-05-11 Thread Elizabeth Finn
This is probably a newbie question, and I apologize for the length – but I have consulted several books / sites and haven’t 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.