#ifndef JUCI_SOURCEFILE_H_ #define JUCI_SOURCEFILE_H_ #include #include #include namespace juci { class filesystem { public: static std::string open(const std::string &path); static std::string open(const boost::filesystem::path &path) { return open(path.string()); } static std::vector lines(const std::string &path); static std::vector lines(const boost::filesystem::path &path) { return lines(path.string()); }; static bool save(const std::string &path, const std::string &new_content); static bool save(const boost::filesystem::path &path, const std::string &new_content) { return save(path.string(), new_content); } static bool save(const std::string &path) { return save(path, ""); }; static bool save(const boost::filesystem::path &path) { return save(path, ""); }; }; } // namepace juci #endif // JUCI_SOURCEFILE_H_