Bookshelf Home | Contents | Index | PDF |
Siebel eScript Language Reference > C Language Library Reference > Clib File and Directory Methods > Clib Reopen File MethodThe Clib Reopen File method closes the file associated with a file pointer. It then opens a file and associates it with the file pointer of the file that it closed. You can use it to redirect one of the predefined file handles to a file or from a file. These file handles include stdout, stderr, and stdin. It returns one of the following values:
FormatClib.freopen(filename, mode, oldFilePointer) Table 129 describes the arguments for the Clib Reopen File method. ExampleThe following example uses the same file pointer to write to two different files: var oFile = Clib.fopen("c:\\temp\\firstfile","w"); Related Topics |
Siebel eScript Language Reference | Copyright © 2018, Oracle and/or its affiliates. All rights reserved. Legal Notices. | |