[SAMPLE] update new URI
This commit is contained in:
parent
f327765a04
commit
7fe6b15b23
@ -21,7 +21,7 @@ File to read: "read.json"
|
||||
Reading a file is done like this:
|
||||
@snippet read.cpp ejson_sample_read_file
|
||||
|
||||
The file naming is manage by @ref etk::FSNode that provide "DATA:" start string for internal application asset. You can use external path like "./plop/file.json" too.
|
||||
The file naming is manage by @ref etk::FSNode that provide "DATA:///" start string for internal application asset. You can use external path like "./plop/file.json" too.
|
||||
|
||||
|
||||
Read an JSON Stream {#ejson_tutorial_read_stream}
|
||||
|
@ -16,7 +16,7 @@ static void readFromFile() {
|
||||
ejson::Document doc;
|
||||
//! [ejson_sample_declare_doc]
|
||||
//! [ejson_sample_read_file]
|
||||
bool retParse = doc.load("DATA:read.json");
|
||||
bool retParse = doc.load("DATA:///read.json");
|
||||
//! [ejson_sample_read_file]
|
||||
TEST_INFO("parse ret = " << retParse);
|
||||
TEST_INFO("Debug display of the tree:");
|
||||
@ -76,7 +76,7 @@ static void readFromString2() {
|
||||
static void readFull() {
|
||||
ejson::Document doc;
|
||||
TEST_INFO("parse");
|
||||
bool retParse = doc.load("DATA:read.json");
|
||||
bool retParse = doc.load("DATA:///read.json");
|
||||
TEST_INFO("parse ret = " << retParse);
|
||||
TEST_INFO("Debug display of the tree:");
|
||||
doc.display();
|
||||
|
Loading…
x
Reference in New Issue
Block a user