17 explicit FileRAII(
const std::string &filename)
18 : file(filename), is_opened(
true) {
19 is_opened = file.is_open();
21 str = std::string((std::istreambuf_iterator<char>(file)),
22 (std::istreambuf_iterator<char>()));
33 bool isOpen()
const {
return is_opened; }
35 std::string getInternalStr() {
return str; }