title: How is \0 incorporated into normal text files in reference to fgets
body: <p>I was just wondering that when you input text just using a normal application such as textedit (on OSX) would it still harbour the same '\0' character on the end of each string so that when read through <code>fgets()</code> if would pick said character up and stop reading?</p>
  
  <p>Because I've created a normal text file, but <code>fgets()</code> keeps on stopping at the end of the designated length, instead of when it finds that character, so I have suspicious if it actually exists when I write to a normal text file.</p>
  
  <p>For Example:</p>
  
  <pre><code>How Are You
  There
  </code></pre>
  
  <p>fgets(str, 15, stdin);
  This would end up producing: TherAre You</p>