Bookshelf Home | Contents | Index | PDF |
Siebel eScript Language Reference > Siebel eScript Commands > File I/O Methods in eScript > Clib.fgetpos() MethodThis method stores the current position of the pointer in a file. SyntaxClib.fgetpos(filePointer, position) Returns0 if successful; otherwise, nonzero, in which case an error value is stored in the errno property. UsageThis method stores the current position of the file cursor in the file indicated by filePointer for future restoration using fsetpos(). The file position is stored in the variable position; use it with fsetpos() to restore the cursor to its position. ExampleThis example writes two strings to a temporary text file, using Clib.fgetpos() to save the position where the second string begins. The program then uses Clib.fsetpos() to set the file cursor to the saved position so as to display the second string. function Test_Click () See Also |
Siebel eScript Language Reference |