Siebel eScript Language Reference > Siebel eScript Commands > File I/O Methods in eScript >

Clib.fputs() Method


This method writes a string to a specified file.

Syntax

Clib.fputs(string, filePointer)

Parameter
Description

string

A string literal or a variable containing a string

filePointer

A file pointer as returned by Clib.fopen()

Returns

EOF if a write error occurs; otherwise, a non-negative value.

Usage

This method writes the value of string to the file indicated by filePointer.

Example

For an example, see Clib.fgets() Method.

See Also

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

Siebel eScript Language Reference