title: Read huge .txt file with python
body: <p>I have a problem in reading a huge txt file with python. I should read all the ~500M lines of a 33 GB .txt file, one by one, but for some obscure reason, my script stops at the 7446633rd line, and gives no error..
  The script is the following easy one:</p>
  
  <pre><code>file = open ("file.txt","r")
  i = 0
  for line in file:
      i = i + 1
  print i
  file.close()
  </code></pre>
  
  <p>I tried the script on more than one machine, and with both 32 and 64-bit versions of python, but no luck..</p>
  
  <p>Anyone knows what could be the problem??</p>