title: Error reading data using python array fromfile
body: <p>I´m trying read a binary pcap file in Python 2.7.</p>
  
  <pre><code>import array
  f = open('unit_46_Monterey_subset.pcap')
  bin = array.array('B')
  bin.fromfile(f, 1206)
  </code></pre>
  
  <p>The file is 12.640.024 bytes sized.</p>
  
  <p>When I run it, I´m getting the error message: EOFError: 'not enough items in file'</p>
  
  <p>What am I doing wrong?</p>