| 87 | } |
| 88 | |
| 89 | void FileUtils::writeToFile(const std::string& filePath, const std::string& content) |
| 90 | { |
| 91 | std::ofstream out(filePath.c_str(), std::ios::binary | std::ofstream::out); |
| 92 | if (!out) |
| 93 | { |
| 94 | throw std::runtime_error("Unable to write file: " + filePath); |
| 95 | } |
| 96 | out << content; |
| 97 | } |
| 98 | |
| 99 | } |
nothing calls this directly
no outgoing calls
no test coverage detected