Bookshelf Home | Contents | Index | PDF |
Siebel eScript Language Reference > Siebel eScript Commands > File I/O Methods in eScript > Clib.fclose() MethodThis method writes a file's data to disk and closes the file. SyntaxReturnsZero if successful; otherwise, returns EOF. UsageThis method flushes the file's buffers (that is, writes its data to disk) and closes the file. The file pointer ceases to be valid after this call. ExampleThis example creates and writes to a text file and closes the file, testing for an error condition at the same time. If an error occurs, a message is displayed and the buffer is flushed. function Test_Click () See Also |
Siebel eScript Language Reference |