MCPcopy Create free account
hub / github.com/QuEST-Kit/QuEST / parser_loadFile

Function parser_loadFile

quest/src/core/parser.cpp:547–558  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

545
546
547string parser_loadFile(string fn) {
548
549 // ensure file is still readable since validation
550 ifstream file(fn);
551 if (!file.good())
552 error_couldNotReadFile();
553
554 // load entire file into string
555 stringstream buffer;
556 buffer << file.rdbuf();
557 return buffer.str();
558}

Callers 2

Calls 1

error_couldNotReadFileFunction · 0.85

Tested by

no test coverage detected