Siebel eScript Language Reference > Siebel eScript Commands > The Clib Object >

Clib.ftell() Method


This method sets the position offset of the file cursor of an open file relative to the beginning of the file.

Syntax

Clib.ftell(filePointer)

Parameter
Description
filePointer
A file pointer as returned by Clib.fopen()

Returns

The current location of the file cursor, or -1 if there is an error, in which case an error value is stored in Clib.errno.

Usage

This method sets the position offset of the file cursor of the open file indicated by filePointer relative to the beginning of the file. For text files (that is, files not opened in binary mode), the file position may not correspond exactly to the byte offset in the file.

See Also

Clib.fseek() Method and Clib.fsetpos() Method


 Siebel eScript Language Reference 
 Published: 18 April 2003