title: C Programming: How to read the whole file contents into a buffer
body: <p>I want to write the full contents of a file into a buffer. The file actually only contains a string which i need to compare with a string.</p>
  
  <p>What would be the most efficient option which is portable even on linux.</p>
  
  <p>ENV: Windows</p>