SysFileRead (FUN)

 

FUNCTION SysFileRead : __XWORD

Read number of bytes out of the file

InOut:

Scope

Name

Type

Comment

Return

SysFileRead

__XWORD

Number of bytes read from file. 0=if failed

Input

hFile

RTS_IEC_HANDLE

Handle of the file

pbyBuffer

POINTER TO BYTE

Pointer to buffer for read data

ulSize

__XWORD

Number of bytes to read from file. Must be less or equal the buffer size!

pResult

POINTER TO RTS_IEC_RESULT

Pointer to runtime system error code (see CmpErrors.library)