title: How can I load a whole file into a string in C
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/174531/easiest-way-to-get-files-contents-in-c">Easiest way to get file&#39;s contents in C</a>  </p>
  </blockquote>
  
  
  
  <p>My program reads files that span over many lines. I would like to hold the content of a file in a single string.</p>
  
  <p>I don't know the number of lines of my file before execution, however I have fixed a line size to MAX_LINE_LEN.</p>
  
  <p>How can you do that?</p>