[Tutor] Opening C++ binary files
Joel Goldstick
joel.goldstick at gmail.com
Tue Sep 21 19:38:58 CEST 2010
On Tue, Sep 21, 2010 at 1:23 PM, bob gailer <bgailer at gmail.com> wrote:
> On 9/21/2010 12:34 PM, Joel Goldstick wrote:
>
>
>
> On Tue, Sep 21, 2010 at 12:03 PM, Joe Bennett <jammer10000 at gmail.com>wrote:
>
>> I have some binary files created by a program written in C++... Anyone
>> have any experience with this and willing to share? ACSII test is
>> easy, but not sure how the rest is encoded....????
>>
>>
>>
>>
>> -Joe
>> _______________________________________________
>> Tutor maillist - Tutor at python.org
>> To unsubscribe or change subscription options:
>> http://mail.python.org/mailman/listinfo/tutor
>>
>
> fileobj = open(filename, mode='wb')
>
> Did you mean "rb"? OP says files were written by another program.
>
oops.. of course!
>
> will open the file. Do you have any documentation on the file structure?
>
>
>
> --
> Bob Gailer
> 919-636-4239
> Chapel Hill NC
>
>
> _______________________________________________
> Tutor maillist - Tutor at python.org
> To unsubscribe or change subscription options:
> http://mail.python.org/mailman/listinfo/tutor
>
>
--
Joel Goldstick
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20100921/b793a6b7/attachment.html>
More information about the Tutor
mailing list