how to reading binary data...

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


An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20041021/6bf6b03e/attachment.html>
-------------- next part --------------
  
Hello

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?

Regards
Sandeep



More information about the Python-list mailing list