title: How to effectively remove a line in the middle of a large file?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/2329417/fastest-way-to-delete-a-line-from-large-file-in-python">Fastest Way to Delete a Line from Large File in Python</a><br>
    <a href="https://stackoverflow.com/questions/8868499/how-to-edit-a-line-in-middle-of-txt-file-without-overwriting-everything">How to edit a line in middle of txt file without overwriting everything?</a>  </p>
  </blockquote>
  
  
  
  <p>I know I can read every line into a list, remove a line, then write the list back.</p>
  
  <p>But the file is large, is there a way to remove a part in the middle of the file, and needn't rewrite the whole file?</p>