SysFileTruncate (FUN)

 

FUNCTION SysFileTruncate : RTS_IEC_RESULT

Set a new filesize. May be larger or smaller than current size.

InOut:

Scope

Name

Type

Comment

Return

SysFileTruncate

RTS_IEC_RESULT

Returns the runtime system error code (see CmpErrors.library)

Input

hFile

RTS_IEC_HANDLE

Handle of the file

ulSizeNew

__XWORD

Size to set.