| 30 | namespace exporter { |
| 31 | |
| 32 | std::string ReadTextFile(const std::string& filename) { |
| 33 | std::ifstream inputStream(filename); |
| 34 | if (!inputStream.is_open()) { |
| 35 | return ""; |
| 36 | } |
| 37 | std::string text((std::istreambuf_iterator<char>(inputStream)), |
| 38 | (std::istreambuf_iterator<char>())); |
| 39 | inputStream.close(); |
| 40 | return text; |
| 41 | } |
| 42 | |
| 43 | size_t WriteTextFile(const std::string& fileName, const char* text) { |
| 44 | auto path = Utf8ToPath(fileName); |
no test coverage detected