31 #define s_FILE_MODE_READ "r" // open for reading
32 #define s_FILE_MODE_WRITE "w" // open for writing (file need not exist)
33 #define s_FILE_MODE_APPEND "a" // open for appending (file need not exist)
34 #define s_FILE_MODE_RW_START "r+" // open for reading and writing, start at beginning
35 #define s_FILE_MODE_RW_OVER "w+" // open for reading and writing (overwrite file)
36 #define s_FILE_MODE_RW_APPEND "a+" // open for reading and writing (append if file exists)
int file_write(file_t *fs, char *data, int len)
struct s_FILE_STRUCT file_t
File structure.
file_t * file_open_time(const char *name, const char *ext, const char *mode)
int file_readln(file_t *fs, char *buffer, size_t buflen)
file_t * file_open(const char *name, const char *mode)
int file_close(file_t *fs)
int file_flush(file_t *fs)
int file_write_direct(file_t *fs, char *data, int len)