23 #define FILE_READ O_READ
24 #define FILE_WRITE (O_READ | O_WRITE | O_CREAT)
26 class File :
public Stream {
34 virtual size_t write(uint8_t);
35 virtual size_t write(
const uint8_t *buf,
size_t size);
38 virtual int available();
40 int read(
void *buf, uint16_t nbyte);
41 boolean seek(uint32_t pos);
48 boolean isDirectory(
void);
50 void rewindDirectory(
void);
64 SdFile getParentDir(
const char *filepath,
int *indx);
73 File open(
const char *filename, uint8_t mode = FILE_READ);
76 boolean exists(
char *filepath);
80 boolean mkdir(
char *filepath);
83 boolean remove(
char *filepath);
85 boolean rmdir(
char *filepath);
97 friend boolean callback_openPath(
SdFile&,
char *,
boolean,
void *);
Access FAT16 and FAT32 files on SD and SDHC cards.
Definition: SdFat.h:137
Access FAT16 and FAT32 volumes on SD and SDHC cards.
Definition: SdFat.h:431
uint8_t const SD_CHIP_SELECT_PIN
Definition: Sd2Card.h:65
Raw access to SD and SDHC flash memory cards.
Definition: Sd2Card.h:159
uint8_t const O_RDONLY
Definition: SdFat.h:55