#include "file_reader.h" #include #include #include // Read a SQL file bool FileReader::read(const std::string &sqlFilePath, std::string &sql) { // Try read the SQL file std::ifstream file(sqlFilePath); if (!file.is_open()) { std::cerr << "Error opening file:" << sqlFilePath << std::endl; return false; } std::stringstream buffer; buffer << file.rdbuf(); sql = buffer.str(); file.close(); return true; }