title: How to read in binary data after ascii header in Python
body: <p>I have some imaging data that's stored in a file that contains an ascii text header, ending with a null character, followed by the binary data. The ascii headers vary in length, and I'm wondering what's the best way to open the file, read the header and find the null character, and then load the binary data (in Python).</p>
  
  <p>Thanks for the help,<br>
  James</p>