diff --git a/README.md b/README.md index 26c92f2..eebcff4 100644 --- a/README.md +++ b/README.md @@ -34,6 +34,10 @@ int main() MiniPPFile::Section* gameSection = nullptr; result = root.GetSubSection("game", &gameSection); + // "Easy" API + int64_t test = gameSection.GetValueOrDefault("year", 1999); + + // Verbose API MiniPPFile::Values::StringValue* nameValue = nullptr; result = gameSection->GetValue("name", &nameValue); MiniPPFile::Values::IntValue* yearValue = nullptr;