title: Memory error due to the huge input file size
body: <p>When I using the following code to read file:</p>
  
  <pre><code>lines=file("data.txt").read().split("\n")
  </code></pre>
  
  <p>I have the following error</p>
  
  <pre><code>MemoryError
  </code></pre>
  
  <p>the file size is</p>
  
  <pre><code>ls -l
  -rw-r--r-- 1 charlie charlie 1258467201 Sep 26 12:57 data.txt
  </code></pre>