title: How to read specific part of large file in Python
body: <p>Given a large file (hundreds of MB) how would I use Python to quickly read the content between a specific start and end index within the file?</p>
  
  <p>Essentially, I'm looking for a more efficient way of doing:</p>
  
  <pre><code>open(filename).read()[start_index:end_index]
  </code></pre>