This function is used to write a string to a file that has been opened in write-type text mode.
Syntax |
i32 f_puts (string buff, stru_filehnd stru) |
||||||||
---|---|---|---|---|---|---|---|---|---|
buff |
String to be placed in the file |
||||||||
stru |
Variable of type stru_filehnd that contains the handle obtained via the f_open() function |
||||||||
Result |
Returns:
|
||||||||
Validity |
Task |
||||||||
Note |
If I use a non-empty file, the contents of the file prior to using the function are erased. If using functions regarding compact flash management, it is recommended that bit 14 of the sys_cfg variable (0x00004000) be imposed to 1, to enable the use of safety routines for writing/reading flash |
Example of use:
|