title: Append to buffer using read() in C
body: <p>I want to read data from a text file in blocks of 20 characters into a buffer until the end of the file by using the read() command in C.</p>
  
  <pre><code>while (n != 0) {    
      n = read(filedescriptor, buffer, 20);
  }
  </code></pre>
  
  <p>This overwrites the buffer each time. Is it possible to append to the buffer using the <code>read()</code> command?</p>