User`s manual

138 digi.com File Systems
Table 10-2. Flash File System Auxiliary Functions
Command Description
sspec_addfsfile
Associate a name with the flash file system file number. The return
value is an index into an array of structures associated with the
named files.
sspec_readfile
Read a file represented by the return value of
sspec_addfsfile into a buffer.
sspec_getlength Get the length (number of bytes) of the file.
sspec_getfileloc
Get the file system file number (1- 255). Cast return value to
FILENUMBER.
sspec_findname
Find the index into the array of structures associated with named
files of the file that has the specified name.
sspec_getfiletype
Get file type. For flash file system files this value will be
SSPEC_FSFILE.
sspec_findnextfile
Find the next named file in the flash file system, at or following the
specified index, and return the index of the file.
sspec_remove Remove the file name association.
sspec_save
Saves to the flash file system the array of structures that reference
the named files in the flash file system.
sspec_restore
Restores the array of structures that reference the named files in the
flash file system.