Siebel eScript Language Reference > Siebel eScript Commands > File I/O Methods in eScript >
Clib.ftell() Method
This method gets the position offset of the file cursor of an open file relative to the beginning of the file. Syntax
Clib.ftell(filePointer)
|
|
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 gets 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 Clib.fsetpos() Method
|