Logo Pico-Framework A web-first embedded framework for C++
Loading...
Searching...
No Matches
FatFsFileReader.h
Go to the documentation of this file.
1#pragma once
2
4#include <ff_stdio.h>
5#include <string>
6
11public:
13 ~FatFsFileReader() override;
14
20 bool open(const std::string& path);
21
29 bool readLine(char* outLine, size_t maxLen) override;
30
34 void close() override;
35
36private:
37 FF_FILE* file = nullptr; // FatFs file handle
38 bool isOpen = false;
39};
Buffered line reader for FatFs FILE* files.
void close() override
Closes the file.
~FatFsFileReader() override
bool open(const std::string &path)
Opens a file for reading.
bool readLine(char *outLine, size_t maxLen) override
Reads a single line into the provided buffer.
Abstract interface for reading a file line-by-line.