#include "Util.h" #include std::vector Util::load_file(const std::string& path) { std::ifstream input_stream(path, std::ios::binary | std::ios::in | std::ios::ate); if (input_stream) { std::streampos size = input_stream.tellg(); input_stream.seekg(std::ios::beg); std::vector buffer(size); input_stream.read(buffer.data(), size); input_stream.close(); } throw "Unable to access file."; }