#pragma once #include #include class File { public: File(const std::string& path) { this->path = path; } bool exists() const { std::fstream file_stream; file_stream.open(this->path.c_str()); const auto ok = !file_stream.fail(); return ok; } std::string get_path_str() const { return path; } private: std::string path; };