EasyManua.ls Logo

DFRobot FireBeetle ESP32-E - Page 50

DFRobot FireBeetle ESP32-E
92 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
filename: the name of the directory to remove, with sub-directories separated by forward-slashes, /
Return*: booleantype. True if the removal of the directory succeeded, false if not.
File Class
The file class provides the function of reading / writing files. The function of this class is very similar to the that of serial port related functions
used before. The member functions are as follows.
available(
Description: Check if there are any bytes available for reading from the file. Grammar: file. available()
Parameter:
file:an instance of the File class
Return*: the number of bytes available
close()
Description: Close the file, and ensure that any data written to it is physically saved to the SD card. Grammar: file. close()
Parameter:
file:an instance of the File class
Return*: none
flush()
Description: Ensures that any bytes written to the file are physically saved to the SD card. This is done automatically when the file is closed.
Syntax: file.flush
Parameter:
file: an instance of the File class
Return*: none
peek(