Bookshelf Home | Contents | Index | PDF |
Siebel eScript Language Reference > Siebel eScript Commands > File I/O Methods in eScript > Clib.ungetc()MethodThis method pushes a character back into a file. SyntaxClib.ungetc(char, filePointer) ReturnsThe value of char if successful, EOF if unsuccessful. UsageWhen char is put back, it is converted to a byte and is again in the file for subsequent retrieval. Only one character is pushed back. You might want to use this function to read up to, but not including, a newline character. You would then use Clib.ungetc to push the newline character back into the file buffer. See AlsoClib.fgetc() Method and Clib.getc() Method |
Siebel eScript Language Reference |