#pragma once #include #include #include #include #include inline std::string readFile(const std::filesystem::path& path) { std::ifstream file(path); if(!file.is_open()) throw std::runtime_error(std::string("could not open file ") + path.string()); std::stringstream ss; ss<