#include #include std::string read_all(const std::string& path) { std::ifstream in(path, std::ios::binary); if (!in) throw std::runtime_error("cannot open " + path); return std::string(std::istreambuf_iterator(in), {}); }