/
thomas-king
/
SourceManager
Обзор
Документация
Войти
/
thomas-king
/
SourceManager
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
main
include/Services/FileManager.h
39 строк
569 B
Ace Rodstin
Task #39. Add write capability to SourceManager.
24 окт 2023, 15:32
24 окт 2023, 15:32
bfd3834
Код
Авторство
О чём код?
// // FileManager.h // SourceManager // // Created by Ace Rodstin on 10/24/23. // Updated by Ace Rodstin on 10/24/23. // // Copyright © 2023 Ace Rodstin. All rights reserved. // #ifndef FILE_MANAGER_HEADER_FILE #define FILE_MANAGER_HEADER_FILE #include <string> #include <fstream> #include <filesystem> using namespace std; class FileManager { public: enum class OpenOption { READ, WRITE, APPEND }; void openFile(string path, OpenOption openOption); void closeFile(); string read(); void write(string text); private: fstream file; }; #endif