Bookshelf Home | Contents | Index | PDF |
Siebel eScript Language Reference > Siebel eScript Commands > File I/O Methods in eScript > Clib.fgets() MethodThis method returns a string consisting of the characters in a file from the current file cursor to the next newline character. SyntaxClib.fgets([maxLen,] filePointer) ReturnsA string consisting of the characters in a file from the current file cursor to the next newline character. If an error occurs, or if the end of the file is reached, null is returned. UsageThis method returns a string consisting of the characters in a file from the current file cursor to the next newline character. The newline is returned as part of the string. ExampleThis example writes a string containing an embedded newline character to a temporary file. It then reads from the file twice to retrieve the output and display it. function Test_Click () Running this code produces the following result. See Also |
Siebel eScript Language Reference |