Bookshelf Home | Contents | Index | PDF |
Siebel eScript Language Reference > Siebel eScript Commands > File I/O Methods in eScript > Clib.fwrite() MethodThis method writes the data in a specified variable to a specified file and returns the number of elements written. Syntax AClib.fwrite(sourceVar, varDescription, filePointer) Syntax BClib.fwrite(sourceVar, bytelength, filePointer)
Returns0 if a write error occurs; use Clib.ferror() to get more information about the error. UsageThis method writes the data in sourceVar to the file indicated by filePointer and returns the number of elements written. The varDescription variable describes how much data is to be read from the object indicated by sourceVar:
The Siebel eScript version of fwrite() differs from the standard C version in that the standard C library is set up for writing arrays of numeric values or structures from consecutive bytes in memory. This is not necessarily the case in eScript. ExampleTo write the 16-bit integer if ( !Clib.fwrite(i, SWORD16, fp) || !Clib.fwrite(f, FLOAT32, fp) See Also |
Siebel eScript Language Reference |