title: Difference between r+ and w+ in fopen()
body: <p>In <code>fopen("myfile", "r+")</code> what is the difference between the <code>"r+"</code> and <code>"w+"</code> open mode? I read this:</p>
  
  <blockquote>
    <p><code>"r"</code>   Open a text file for reading. <br/><code>"w"</code> Open a text file for writing,
    truncating an an existing file to zero length, or creating the file if it does not exist.</p>
    
    <p><code>"r+"</code> Open a text file for update (that is, for both reading and
    writing). <br/><code>"w+"</code> Open a text file for update (reading and writing),
    first truncating
        the file to zero length if it exists or creating the file if it does not    exist.</p>
  </blockquote>
  
  <p>I mean the difference is that if I open the file with <code>"w+"</code>, the file will be erased first?</p>