We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 53f3e8e commit 5057d5bCopy full SHA for 5057d5b
libraries/SD/File.cpp
@@ -51,6 +51,14 @@ void File::flush() {
51
SD.file.sync();
52
}
53
54
+boolean File::seek(uint32_t pos) {
55
+ return SD.file.seekSet(pos);
56
+}
57
+
58
+uint32_t File::size() {
59
+ return SD.file.fileSize();
60
61
62
void File::close() {
63
SD.file.close();
64
libraries/SD/SD.h
@@ -33,6 +33,8 @@ class File : public Stream {
33
virtual int peek();
34
virtual int available();
35
virtual void flush();
36
+ boolean seek(uint32_t pos);
37
+ uint32_t size();
38
void close();
39
operator bool();
40
};
0 commit comments