title: Read binary data (ieee-le) in Python
body: <p>I'm trying to open a binary file in Python, for which in Matlab I'm using </p>
  
  <p><code>data = fread(file, [rows, cols], 'float','ieee-le')</code></p>
  
  <p>In Python I tried both</p>
  
  <p><code>data = open(file,'rb').read()</code> &amp;</p>
  
  <p><code>data = np.fromfile(file, dtype=data_type, count=count)</code></p>
  
  <p>neither of which gave expected results (for data_type I tried all formats listed on the info page).</p>
  
  <p>Just reading the data, the first 25 samples look like this: </p>
  
  <blockquote>
    <p>b'\xe4\xa0B\xbc\x99\x9e\x1f\xbd\xc3\x07P>m\xe0\x96=\x0c\xf6\x8a=\x90\x86\t>)</p>
  </blockquote>
  
  <p>While searching for solutions I stumbled over Python's struct package, but as I know close to nothing about data formats I was not able to use it to solve the problem. Any help would therefore be highly appreciated...</p>