title: Adding Date in a file - C
body: <p>I'm coding a network game in C. I 've written scores in a file. I also wanted to add the date of the day.
  Here is the file's structure : Date Name Score
  and the code :</p>
  
  <pre><code>ScoreFile = fopen("scores.txt", "a");
  fprintf(ScoreFile, "%s %d\n", Name, Score);
  </code></pre>
  
  <p>I've tried system("date") but it's printed on stdout. I think that I can't add the Date with fprintf.</p>
  
  <p>Do you know a solution that permits to add Date in a file ? (maybe something from time.h ?)</p>
  
  <p>thanks a lot !!</p>