diff --git a/Home.md b/Home.md index a8922aa..0c2d7ac 100644 --- a/Home.md +++ b/Home.md @@ -28,6 +28,16 @@ Features Code example ------------ +You must open the file in an `std::ifstream` before you can use it: + +```cpp +#include + +std::ifstream config_doc("config_doc.json", std::ifstream::binary); +``` + +Once that is done you can then use jsoncpp to parse the data: + ```cpp Json::Value root; // will contains the root value after parsing Json::Reader reader;