title: How can I get a file's size in C?
body: <p>How can I find out the size of a file I opened with an application written in C ? 
  I would like to know the size, because I want to put the content of the loaded file into a string, which I allocate using <code>malloc()</code>. Just writing <code>malloc(10000*sizeof(char));</code> is IMHO a bad idea. </p>