title: Writing to a CSV file in C
body: <p>My C program generates this data. I need to place it into a CSV file, so that it can be used by another program. How can I achieve this?</p>
  
  <pre><code>Student1 Mark1 Mark2 Mark3 Mark4 Mark5
  Student2 Mark1 Mark2 Mark3 Mark4 Mark5
  Student3 Mark1 Mark2 Mark3 Mark4 Mark5
  Student4 Mark1 Mark2 Mark3 Mark4 Mark5
  Student5 Mark1 Mark2 Mark3 Mark4 Mark5
  </code></pre>