This commit is contained in:
Yuri Trikoz
2020-06-25 05:09:11 +03:00
parent 3daa517c7e
commit b50e1c9791
73 changed files with 260 additions and 296 deletions

View File

@@ -20,37 +20,37 @@ bool fileSystemInit();
/*
* Удалить файл
*/
void removeFile(const String filename);
void removeFile(const String& filename);
/*
* Открыть файл на позиции
*/
File seekFile(const String filename, size_t position = 0);
File seekFile(const String& filename, size_t position = 0);
/*
* Чтение строки из файла
* возвращает стоку из файла в которой есть искомое слово found
*/
String readFileString(const String filename, const String to_find);
const String readFileString(const String& filename, const String& to_find);
/*
* Добовление строки в файл
*/
String addFile(const String filename, const String str);
const String addFile(const String& filename, const String& str);
/*
* Запись строки в файл
*/
String writeFile(const String filename, const String str);
const String writeFile(const String& filename, const String& str);
/*
* Чтение файла в строку
*/
String readFile(const String filename, size_t max_size);
const String readFile(const String& filename, size_t max_size);
/*
* Размер файла
*/
String getFileSize(const String filename);
const String getFileSize(const String& filename);
bool copyFile(const String src, const String dst, bool overwrite = true);
bool copyFile(const String& src, const String& dst, bool overwrite = true);