SysFileOpen¶
This function of type DWORD serves to open a file, which already exists or which should be created.
The return value is a file number, which will be used in the functions SysFileWrite, SysFileRead, SysFileClose as an input (‘File’). In case of an error ‘0’ will be returned resp. (watch out this exception!) ‘-1’ by target CoDeSys SP RTE.
Input-Variable | Data Type | Description |
---|---|---|
FileName | STRING | File name |
Mode | STRING | Access mode:
|