[Tutor] binary file query

Prasad, Ramit ramit.prasad at jpmorgan.com
Thu Nov 17 15:55:27 CET 2011

-----Original Message-----
From: Shirkhedkar, Dhanashri [mailto:Dhanashri.Shirkhedkar at Honeywell.com] 
Sent: Wednesday, November 16, 2011 10:58 PM
To: Prasad, Ramit
Subject: RE: binary file query

Thanks for replying.
It means that no need to use the 'Struct' module for binary file read,

Please reply to the list (or use reply-all). 

It really depends on your file. The struct module says, "This module 
performs conversions between Python values and C structs represented 
as Python strings." If your file is not a C-struct data then no need
to use the struct module. For every other kind of binary data, use
a library suited to that file if it exists.  Otherwise you can read
the raw data by just opening the file in binary mode as I shows in my
previous email.


Ramit Prasad | JPMorgan Chase Investment Bank | Currencies Technology
712 Main Street | Houston, TX 77002
work phone: 713 - 216 - 5423

This email is confidential and subject to important disclaimers and
conditions including on offers for the purchase or sale of
securities, accuracy and completeness of information, viruses,
confidentiality, legal privilege, and legal entity disclaimers,
available at http://www.jpmorgan.com/pages/disclosures/email.  

More information about the Tutor mailing list