The f_puts function writes a string to the file.
int f_puts ( const char* Str, /* String */ FIL* FileObject /* File object */ );
When the function succeeded, number of characters written that is not minus value is returned. When the function failed due to disk full or any error, an EOF will be returned.
The f_puts() is a wrapper function of f_putc().
Available when _FS_READONLY == 0 and _USE_STRFUNC is 1 or 2. When it is set to 2, '\n's contained in the string are converted to "\r\n".