Help please with binary file read

2006-01-01 Thread Stewart Arnold
I'm trying to convert a Real Basic routine into Python and I can't read the long integer data from a file. Here is the Real Basic code: b=f.OpenAsBinaryFile b.LittleEndian=True i=b.ReadByte titles=b.ReadLong shows=b.ReadLong i=b.ReadLong And here is my code:

Re: Help please with binary file read

2006-01-01 Thread Grant Edwards
On 2006-01-01, Stewart Arnold [EMAIL PROTECTED] wrote: I'm trying to convert a Real Basic routine into Python and I can't read the long integer data from a file. http://docs.python.org/lib/module-struct.html -- Grant Edwards grante Yow! Here I am in 53

Re: Help please with binary file read

2006-01-01 Thread Stewart Arnold
Grant Perfect! Thanks :) Stewart Grant Edwards [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On 2006-01-01, Stewart Arnold [EMAIL PROTECTED] wrote: I'm trying to convert a Real Basic routine into Python and I can't read the long integer data from a file.