Legato
Legato

GoFiler Legato Script Reference

 

Legato v 1.5d

Application v 5.25a

  

 

Chapter SixFile Functions (continued)

SetFilePositionAtEnd Function

Overview

The SetFilePositionAtEnd function moves the current position to the end of a Basic File Object.

Syntax/Parameters

Syntax

int = SetFilePositionAtEnd ( handle hBasicFile );

Parameters

hBasicFile

A handle to a Basic File Object.

Return Value

Returns an int as ERROR_NONE or a formatted error code on failure. Use the GetLastError function to retrieve error information.

Remarks

The SetFilePositionAtEnd function is useful when appending to an existing file. The file can be opened with write access and then, using the SetFilePositionAtEnd function, the write pointer can be easily moved to the end of the Basic File Object.

Related Functions

Platform Support

Go13, Go16, GoFiler Complete, GoFiler Corporate, GoFiler, GoFiler Lite, GoXBRL

Legato IDE, Legato Basic