File Access


The functions are the following:

Function Description
f_open() Opens a file.
f_close() Closes a file.
f_read() Reads bytes from the current file position.
f_write() Writes data into a file at the current file position.
f_getc() Reads a character from the current position in an open file.
f_putc() Writes a character to an open file at the current file position.
f_eof() Checks whether the current position in an open file is the end of file (EOF).
f_tell() Obtains the current read/write position in an open file.
f_seek() Moves the stream position in a file.
f_rewind() Sets the file position in an open file to the start of the file.
f_ftruncate() Truncates a file that is open for writing to a specified length.