title: How to write an array to file in C
body: <p>I have a 2 dimensional matrix:</p>
  
  <pre><code>char clientdata[12][128];
  </code></pre>
  
  <p>What is the best way to write the contents to a file? I need to constantly update this text file so on every write the previous data in the file is cleared.</p>