title: Python - reading/parsing binary file
body: <p>I have .dat file that I m trying to read in python. File format is:</p>
  
  <pre><code>1.1 CDR description1 
  Field   length(bytes)   Offset 
  x   4            0
  x1  2            4
  x2  1            6
  x3  1            7
  ......
  ......
  ......
  x4  16          210 
  x5  4           226 
  x6  70          230
  Total length of information     300
  </code></pre>
  
  <p>These are CDR records and I'm trying to read with the <code>struct</code> module but I can't understand how to use it with my specific file format... Any help?</p>