#pragma once #include class SystemHelper { public: static std::string read_file_to_string(const std::string &filePath) { std::ifstream file(filePath); if (!file.is_open()) { throw std::runtime_error("Could not open file: " + filePath); } std::string content((std::istreambuf_iterator(file)), std::istreambuf_iterator()); file.close(); return content; } };