Reading and writing files
The 1 MB flash memory of the EP6070-0060 can be used to store files.
- Up to 20 files can be stored.
- The file content is stored in binary format.
- Before a file is read, the special file system can read a directory containing names of files and their sizes and additional information. For this purpose, a so-called point file "." must be read: if the name or the ASCII character for "." is passed during the FoE upload (ASCII value 0x2E), a defined header of information from the terminal's memory is returned, which contains details of all the files stored in the terminal. For example, the following memory contents are available:
Detailed information on this can in principle be taken from the sample program. - When saving a file, a freely selectable 32-bit password is expected. A separate password can be selected for each file. If none is given, PW=0 is assumed by the terminal. For reading the file the password is necessary again, possibly also PW=0 if none was given.
- An existing file will be overwritten when a file is saved under the same name. A file can be deleted by a write access with the file name and a transferred file size of 0 (correspondingly without content).
Further Information