Read Binary data

Mars creature jinbow at gmail.com
Thu Sep 4 11:32:24 EDT 2008


Hi guys,
  I am trying to read a binary file created by the following matlab
command:
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
confused.
  'b' in fopen is for 'big-endian', 'real*8' in fwrite is for 64bit
float.
 Thank you very much!
Jinbo Wang



More information about the Python-list mailing list