mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-31 04:19:15 +03:00
FileUtils, some typos fixes
This commit is contained in:
30
include/Utils/FileUtils.h
Normal file
30
include/Utils/FileUtils.h
Normal file
@@ -0,0 +1,30 @@
|
||||
#pragma once
|
||||
|
||||
#include <Arduino.h>
|
||||
#include <FS.h>
|
||||
|
||||
/*
|
||||
* Чтение строки из файла
|
||||
* возвращает стоку из файла в которой есть искомое слово found
|
||||
*/
|
||||
String readFileString(const String& filename, const String& str_to_found);
|
||||
|
||||
/*
|
||||
* Добовление строки в файл
|
||||
*/
|
||||
String addFile(const String& fileName, const String& str);
|
||||
|
||||
/*
|
||||
* Запись строки в файл
|
||||
*/
|
||||
String writeFile(const String& fileName, const String& str);
|
||||
|
||||
/*
|
||||
* Чтение файла в строку
|
||||
*/
|
||||
String readFile(const String& fileName, size_t len);
|
||||
|
||||
/*
|
||||
* Размер файла
|
||||
*/
|
||||
String sizeFile(const String& fileName);
|
||||
Reference in New Issue
Block a user