Read and write binary data

Discussion in 'Python' started by Mars creature, Sep 7, 2008.

  1. Hi guys,
    I am new to Python, and thinking about migrating to it from matlab
    as it is a really cool language. Right now, I am trying to figure out
    how to control read and write binary data, like
    'formatted','stream','big-endian','little-edian' etc.. as in fortran.
    I googled, but can not find a clear answer. Anyone has clue where can
    I learn it? Thanks!!
    Jinbo
     
    Mars creature, Sep 7, 2008
    #1
    1. Advertising

  2. On Sep 7, 5:41 pm, Mars creature <> wrote:
    > Hi guys,
    >   I am new to Python, and thinking about migrating to it from matlab
    > as it is a really cool language. Right now, I am trying to figure out
    > how to control read and write binary data, like
    > 'formatted','stream','big-endian','little-edian' etc.. as in fortran.
    > I googled, but can not find a clear answer. Anyone has clue where can
    > I learn it? Thanks!!
    > Jinbo


    Start by looking at the array module.

    Regards,
    Pat
     
    Patrick Maupin, Sep 8, 2008
    #2
    1. Advertising

  3. On Sep 7, 8:55 pm, Patrick Maupin <> wrote:
    > On Sep 7, 5:41 pm, Mars creature <> wrote:
    >
    > > Hi guys,
    > > I am new to Python, and thinking about migrating to it from matlab
    > > as it is a really cool language. Right now, I am trying to figure out
    > > how to control read and write binary data, like
    > > 'formatted','stream','big-endian','little-edian' etc.. as in fortran.
    > > I googled, but can not find a clear answer. Anyone has clue where can
    > > I learn it? Thanks!!
    > > Jinbo

    >
    > Start by looking at the array module.
    >
    > Regards,
    > Pat


    Thanks!!
     
    Mars creature, Sep 8, 2008
    #3
  4. On Sep 7, 8:55 pm, Patrick Maupin <> wrote:
    > On Sep 7, 5:41 pm, Mars creature <> wrote:
    >
    > > Hi guys,
    > > I am new to Python, and thinking about migrating to it from matlab
    > > as it is a really cool language. Right now, I am trying to figure out
    > > how to control read and write binary data, like
    > > 'formatted','stream','big-endian','little-edian' etc.. as in fortran.
    > > I googled, but can not find a clear answer. Anyone has clue where can
    > > I learn it? Thanks!!
    > > Jinbo

    >
    > Start by looking at the array module.
    >
    > Regards,
    > Pat


    Thanks!!
     
    Mars creature, Sep 8, 2008
    #4
  5. I don't know if this is going to help you
    but a free&open alternative to Matlap is FreeMat just search for it
     
    Mohamed Yousef, Sep 8, 2008
    #5
  6. On Sep 7, 6:41 pm, Mars creature <> wrote:
    > Hi guys,
    > I am new to Python, and thinking about migrating to it from matlab
    > as it is a really cool language. Right now, I am trying to figure out
    > how to control read and write binary data, like
    > 'formatted','stream','big-endian','little-edian' etc.. as in fortran.
    > I googled, but can not find a clear answer. Anyone has clue where can
    > I learn it? Thanks!!
    > Jinbo


    the struct module should be useful
     
    Michael Palmer, Sep 10, 2008
    #6
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Doug
    Replies:
    3
    Views:
    4,415
    Bruce Barker
    Nov 4, 2005
  2. Albert Tu
    Replies:
    3
    Views:
    554
    Bengt Richter
    Mar 10, 2005
  3. Lad
    Replies:
    3
    Views:
    303
    Tim Roberts
    Jan 19, 2007
  4. sweety
    Replies:
    9
    Views:
    1,067
    Richard Heathfield
    Feb 7, 2006
  5. ericunfuk

    read and write binary file

    ericunfuk, Mar 23, 2007, in forum: C Programming
    Replies:
    6
    Views:
    465
    Flash Gordon
    Mar 23, 2007
Loading...

Share This Page