Read Binary data

Mars creature jinbow at
Thu Sep 4 17:32:24 CEST 2008

Hi guys,
  I am trying to read a binary file created by the following matlab
fid=fopen('a.bin','w','b'); fwrite(fid,a,'real*8'); fclose(fid);, and
wondering how to do it in Python. I googled it but still get
  'b' in fopen is for 'big-endian', 'real*8' in fwrite is for 64bit
 Thank you very much!
Jinbo Wang

More information about the Python-list mailing list