title: Function fread not terminating string by \0
body: <p>New to files in C, trying to read a file via fread</p>
  
  <p>Here's the content of the file:</p>
  
  <pre><code>line1 how
  </code></pre>
  
  <p>Code used:</p>
  
  <pre><code>char c[6];
  fread(c,1,5,f1)
  </code></pre>
  
  <p>When outputting var 'c', the contents appear with a random character at the end (eg: line1*)</p>
  
  <p>Does fread not terminate the string or am I missing something?</p>