title: How to read a middle size-specified chunk of a file in Python
body: <p>If I have a text file, what is a clean way to start from a line at near the 5th MB into the file and read the subsequent 5 MB worth of lines into a list?  Ideally into a list of lines.</p>
  
  <p>I know <code>f.seek(5000000)</code> starts at the 5th MB, and I can probably estimate the next 5MB if I estimate the number of lines, but would be nice if there is a more exact way.  Tried to play around with f.readlines, but that didn't work</p>