title: How should I store a time_t timestamp to a file using C?
body: <p>For a small todo program that I am writing, I have timestamps that are of this form</p>
  
  <pre><code>time_t t = time(NULL);
  </code></pre>
  
  <p>and are saved every time a task is entered to denote the time that it was entered.</p>
  
  <p>I want to store the tasks to a plain text file, so that the state can be saved and restored. How should I store the timestamps to the text file and how should I get them back in my program after reading the text file?</p>