Writing formatted data (numeric) to a binary file

Grant Edwards grante at visi.com
Thu Sep 1 23:43:31 EDT 2005


On 2005-09-02, Trevor.Dhu at hotmail.com <Trevor.Dhu at hotmail.com> wrote:

> I'm conscious that the "write" command would allow me to write
> text to a binary file, but I'm not clear how to:
> 1) format my numeric data such that it matches the real*4 format
> 2) parse an entire row of a 2D array without using a for loop.

http://docs.python.org/lib/module-struct.html

-- 
Grant Edwards                   grante             Yow!  I'm in DISGUISE as a
                                  at               BAGGAGE CHECKER....I can
                               visi.com            watch the house, if it's
                                                   ORANGE...



More information about the Python-list mailing list