ACCESS_MODE (ENUM)

 

TYPE ACCESS_MODE :

Access mode

File modes to open a file.

Note

For all *_PLUS modes be aware, that after reading from a file, writing can only be done after a call to SysFileGetPos or SysFileSetPos! If you call SysFileWrite right after SysFileRead, the file pointer could be on an invalid posi­tion!

Correct example:

SysFileRead();
SysFileGetPos();
SysFileWrite();

InOut:

Name

Comment

AM_READ

Open an existing file with Read access. If file does not exist, Open fails

AM_WRITE

Create new file with Write access. If file does exist, content is discarded

AM_APPEND

Open an existing file with Append (only write) access. If file does not exist, Open fails

AM_READ_PLUS

Open an existing file with Read/Write access. If file does not exist, Open fails

AM_WRITE_PLUS

Create new file with Read/Write access. If file does exist, content is discarded

AM_APPEND_PLUS

Open an existing file with Append (read/write) access. If file does not exist, Open creates a new file