/
thomas-king
/
Calculator
Обзор
Документация
Войти
/
thomas-king
/
Calculator
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
main
include/lib/FileManager.h
33 строки
442 B
AceRodstin
Initial commit
28 ноя 2022, 16:15
28 ноя 2022, 16:15
67304a6
Код
Авторство
О чём код?
// // Created by Ace Rodstin on 25 Nov 2022. // #ifndef ACE_FILEMANAGER_H #define ACE_FILEMANAGER_H #include <string> #include <fstream> #include <filesystem> using namespace std; class FileManager { public: enum class OpenOption { read, write, append }; void open_file(string path, OpenOption open_option); void write(string text); string read(); void close_file(); private: fstream file; }; #endif //ACE_FILEMANAGER_H