how to reading binary data...

Sandeep Avinash Gohad gohadbhai at
Thu Oct 21 09:05:20 CEST 2004

An HTML attachment was scrubbed...
URL: <>
-------------- next part --------------

I opened any particular file with the 'rb' mode that is read binary mode. so python will treat the data as a raw data. now i want to read first 4 bytes only then i will convert the first 4 bytes into long datatype and then again read 4 bytes and will do the same.
But how to set & move the pointer using loop?
also how to convert into long?


More information about the Python-list mailing list