title: Reading one integer at a time using python
body: <p>How can I read int from a file? I have a large(512MB) txt file, which contains integer data as:</p>
  
  <pre><code>0 0 0 10 5 0 0 140
  0 20 6 0 9 5 0 0
  </code></pre>
  
  <p>Now if I use <code>c = file.read(1)</code>, I get only one character at a time, but I need one integer at a time. Like:</p>
  
  <pre><code>c = 0
  c = 10
  c = 5
  c = 140 and so on...
  </code></pre>
  
  <p>Any great heart please help. Thanks in advance.</p>