SysFileWrite (FUN)
FUNCTION SysFileWrite : __XWORD
Write number of bytes to the file. File must be opened with AM_WRITE or AM_APPEND.
- InOut:
Scope
Name
Type
Comment
Return
SysFileWrite__XWORDNumber of bytes written to the file. 0=if failed
Input
hFileRTS_IEC_HANDLEHandle of the file
pbyBufferPOINTER TO BYTE
Pointer to buffer with data to write to file
ulSize__XWORDNumber of bytes to write in the file. Must be less or equal the buffer size!
pResultPOINTER TO RTS_IEC_RESULT
Pointer to runtime system error code (see CmpErrors.library)