Kod: Zaznacz cały
std::string buf;
std::ifstream t(filename.c_str());
if (!t.good()) throw std::runtime_error("Could not load file " + filename);
std::stringstream buffer;
buffer << t.rdbuf();
buf = buffer.str();
printf("%s\n", &buf.at(1));