Miosix  2.01
Filesystem

Filesystem related functions

File handling will not be described here since it is done using the C or C++ standard library (fopen, fprintf, istream, remove, mkdir, ...).
All file related function of the C and C++ standard library should work, except rename() and link() which are not implemented.
The maximum number of files that can be opened at the same time is defined in the constant MAX_OPEN_FILES in miosix/config/miosix_settings.h, All files are opened in binary mode. Therefore there is no differnce between fopen("file.txt","r") and fopen("file.txt","rb"). For filesystem write access, the SYNC_AFTER_WRITE option in miosix_settings.h allows to choose a faster or safer implementation.

Directory listing is not done using the standard opendir() and readdir() functions, but using the Directory class.

Mounting and unmounting the filesystem is done through the Filesystem class. Note that the filesystem is mounted automatically at boot time, except in case of errors (like no uSD card in the socket).