Siebel eScript Language Reference > Siebel eScript Commands > The Clib Object >

Clib.fputc() Method and Clib.putc() Method


These methods write a character, converted to a byte, to the specified file.

Syntax

Clib.fputc(char, filePointer)
Clib.putc(char, filePointer)

Parameter
Description
char
A one-character string or a variable holding a single character
filePointer
A file pointer as returned by Clib.fopen()

Returns

If successful, char; otherwise, EOF.

Usage

These methods write a single character to the file indicated by filePointer. If char is a string, the first character of the string is written to the file indicated by filePointer. If char is a number, the character corresponding to its Unicode value is written to the file.

See Also

Clib.fgetc() Method and Clib.getc() Method and Clib.fputs() Method


 Siebel eScript Language Reference 
 Published: 18 April 2003