Helper: Reads an entire file into a string.
| 14 | |
| 15 | // Helper: Reads an entire file into a string. |
| 16 | static std::string ReadEntireFile(const std::string& filePath) { |
| 17 | std::ifstream file(filePath, std::ios::binary); |
| 18 | if (!file) return ""; |
| 19 | std::stringstream buffer; |
| 20 | buffer << file.rdbuf(); |
| 21 | return buffer.str(); |
| 22 | } |
| 23 | |
| 24 | // Helper: Checks if a file exists. |
| 25 | static bool FileExists(const std::string& filePath) { |
no outgoing calls
no test coverage detected