-----Original Message----- From: Shirkhedkar, Dhanashri [mailto:[email protected]] 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, right? =================================================================== 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 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. _______________________________________________ Tutor maillist - [email protected] To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
