#pragma once #include #include #include #include std::string read_file(const char *filename) { std::ifstream in(filename, std::ios::in | std::ios::binary); if (in) return std::string(std::istreambuf_iterator(in), std::istreambuf_iterator()); throw(errno); }