title: rapidjson: working code for reading document from file?
body: <p>I need a working c++ code for reading document from file using rapidjson: <a href="https://code.google.com/p/rapidjson/" rel="noreferrer">https://code.google.com/p/rapidjson/</a></p>
  
  <p>In the wiki it's yet undocumented, the examples unserialize only from std::string, I haven't a deep knowledge of templates.</p>
  
  <p>I serialized my document into a text file and this is the code I wrote, but it doesn't 
  compile:</p>
  
  <pre><code>#include "rapidjson/prettywriter.h" // for stringify JSON
  #include "rapidjson/writer.h"   // for stringify JSON
  #include "rapidjson/filestream.h"   // wrapper of C stream for prettywriter as output
  [...]
  std::ifstream myfile ("c:\\statdata.txt");
  rapidjson::Document document;
  document.ParseStream&lt;0&gt;(myfile);
  </code></pre>
  
  <p>the compilation error state:  <em>error: 'Document' is not a member of 'rapidjson'</em></p>
  
  <p>I'm using Qt 4.8.1 with mingw and rapidjson v 0.1 (I already try with upgraded v 0.11 but the error remain)</p>