| 545 | |
| 546 | |
| 547 | string 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 | } |
no test coverage detected