#include "io.hpp" #include #include #include std::string readFile(const std::string& filePath) { std::ifstream fileStream(filePath, std::ios::in); if (!fileStream.is_open()) { std::cerr << "Could not read file " << filePath << ". File does not exist." << std::endl; return ""; } std::stringstream sstr; sstr << fileStream.rdbuf(); fileStream.close(); return sstr.str(); }