Clib Write String to File Method

The Write String to File method writes a string to a file that you specify. It returns one of the following values:

  • If successful, then it returns a nonnegative value.

  • If not successful, then it returns the following value:

    EOF

Format

Clib.fputs(string, filePointer)

The following table describes the arguments for the Write String to File method.

Argument Description

string

A string literal or a variable that contains a string.

filePointer

A file pointer that the Clib Open File method returns.

Example

For an example, see Clib Get Characters to Next Line Method.