SetReadPos

File management function.

The SetReadPos function moves the read pointer to a specified position.

Syntax

SetReadPos(<filename>,<value>)
or
ret=SetReadPos(<filename>,<value>)

Parameters

<filename>, string, name of the file where the read pointer is set.

<value>, integer, new position for the read pointer.

Return value

Ret, numeric return code. When the read pointer is successfully repositioned, the function returns 0, otherwise use this return code for Error Handling.

Remarks

See the Read function for a detailed explanation.

Examples

 

var = SetReadPos("C:\my directory\my file.txt",3)

See a complete example at the Read function