File and directory naming conventions, Examples, File and directory naming conventions examples – Zilog EZ80F91AZA User Manual
Page 16
Zilog File System Overview
UM017914-1211
6
Zilog File System
User Manual
File and Directory Naming Conventions
The following conventions are applicable to the naming of directories, files and volumes
in the Zilog File System:
•
Names must start with an alphabet or with an underscore ( _ )
•
Names must be less than 16 bytes in length
•
Names can contain a combination of alphabets, numbers, periods ( . ) and underscores
( _ )
•
Names must not contain two successive periods
•
Names must not contain any special characters
Examples
The following list presents valid file\directory\volume names.
•
a_b.c
•
a_b.c
•
_b.c
•
__b.c.txt
Conversely, the following list presents file\directory\volume names that are invalid.
•
1a.c
Table 2. Zilog File System – Supported C Run-Time Standard Library APIs
Function Name
Description
fopen
Opens a file for reading/writing.
fclose
Closes an opened file.
fputc
Puts a character into the file.
fgetc
Returns a character from the file.
fputs
Stores a string into the file.
fgets
Gets a string from the file.
fread
Reads the specified number of bytes from the file.
fwrite
Writes the specified number of bytes into the file.
fseek
Alters the file pointer position.
ftell
Returns the file pointer position.
feof
Determines whether it is end of file or not.