title: How to read a char* string by fread function?
body: <p>We called a library to read text, this library API only accepts a <code>FILE*</code> pointer. It actually reads file text by <code>fread()</code> call internally. </p>
  
  <p>But we also need to use this library to read text from a <code>char*</code> string rather than a <code>FILE*</code>. </p>
  
  <p>Of course we can write the <code>char*</code> string into a temp file but we're not allowed to do this for some reasons...</p>
  
  <p>How to do ? Thanks !!</p>