Mikroelektronika MIKROE-350 Fiche De Données

Page de 526
Cf_Fat_Rewrite
Cf_Fat_Append
Cf_Fat_Delete
200
MIKROELEKTRONIKA
- SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD
Libraries
mikroBasic PRO for AVR
CHAPTER 6
Prototype
sub procedure Cf_Fat_Rewrite()
Returns
Nothing.
Description
Opens currently assigned file for writing. If the file is not empty its content will
be erased.
Requires
CF card and CF library must be initialized for file operations. See Cf_Fat_Init.
The file must be previously assigned. See Cf_Fat_Assign.
Example
' open file for writing
Cf_Fat_Rewrite()
Prototype
sub procedure Cf_Fat_Append()
Returns
Nothing.
Description
Opens currently assigned file for appending. Upon this function execution file
pointers will be positioned after the last byte in the file, so any subsequent file
writing operation will start from there.
Requires
CF card and CF library must be initialized for file operations. See Cf_Fat_Init.
File must be previously assigned. See Cf_Fat_Assign.
Example
' open file for appending
Cf_Fat_Append()
Prototype
sub procedure Cf_Fat_Delete()
Returns
Nothing.
Description
Deletes currently assigned file from CF card.
Requires
CF card and CF library must be initialized for file operations. See Cf_Fat_Init.
File must be previously assigned. See Cf_Fat_Assign.
Example
' delete current file
Cf_Fat_Delete()