title: Overwrite existing line in the middle of csv file in R?
body: <p>Is there a way to overwrite an existing line in the middle of a csv file with new data?</p>
  
  <p>For instance, suppose I have this csv file:</p>
  
  <pre><code>V1,V2,V3,V4,V5
  5,1,5,0,5
  5,0,4,1,5
  0,4,0,5,0
  1,3,0,4,1
  </code></pre>
  
  <p>and suppose that I want to overwrite the third line (5,0,4,1,5) with other values, such as 1,1,1,1,1. </p>
  
  <p>Is this possible? Would someone help me realize how to do so?</p>
  
  <p>EDIT: the csv file doesn't fit in primary memory.</p>
  
  <p>Thank you.</p>