начал писать систему формирования виджетов

This commit is contained in:
Dmitry Borisenko
2022-01-15 23:29:52 +01:00
parent 7f5b78b695
commit f01fea9bac
39 changed files with 272 additions and 2 deletions

View File

@@ -63,4 +63,15 @@ bool cutFile(const String& src, const String& dst) {
dstFile.close();
FileFS.remove(srcPath);
return true;
}
const String addFileLn(const String& filename, const String& str) {
String path = filepath(filename);
auto file = FileFS.open(path, "a");
if (!file) {
return "failed";
}
file.println(str);
file.close();
return "sucсess";
}