FileUtils, some typos fixes

This commit is contained in:
Yuri Trikoz
2020-06-20 17:12:59 +03:00
parent 6f310e5e07
commit de5a9c01d0
12 changed files with 354 additions and 210 deletions

30
include/Utils/FileUtils.h Normal file
View 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);