Mikroelektronika MIKROE-350 Fiche De Données

Page de 526
Mmc_Fat_Get_File_Size
270
MIKROELEKTRONIKA
- SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD
Libraries
mikroBasic PRO for AVR
CHAPTER 6
Prototype
sub function Mmc_Fat_Get_File_Size() as longword
Returns
Size of the currently assigned file in bytes.
Description
This function reads size of the currently assigned file in bytes. 
Requires
MMC/SD card and MMC library must be initialized for file operations. See
Mmc_Fat_Init.
The file must be previously assigned. See Mmc_Fat_Assign.
Example
dim my_file_size as longword
...
main:
...
my_file_size = Mmc_Fat_Get_File_Size
...
end.