| 35 | \*--------------------------------------------------------------------------------------------------------------------*/ |
| 36 | string File::read(const path& file_path) { |
| 37 | std::ifstream json_stream = FileSystem::open_r(file_path); |
| 38 | std::stringstream buffer; |
| 39 | buffer << json_stream.rdbuf(); |
| 40 | return buffer.str(); |
| 41 | } |
| 42 | |
| 43 | void File::write(const path& dir_path, const string& dump) { |
| 44 | auto file = FileSystem::open_w(dir_path); |
| 45 | |
| 46 | file << dump; |
no test coverage detected