File Manipulation Methods

The following table describes file manipulation methods.

Method Description

Clib Clear Buffer Method

Writes to disk the data that exists in the buffer, and then clears the buffer.

Clib End of File Method

Determines if the file cursor is at the end of the file.

Clib Get Character Method

Gets a character from the buffer.

Clib Get Characters to Next Line Method

Gets a string that includes characters from the cursor to the next newline character.

Clib Get Cursor Position Method

Gets the current position of the file cursor.

Clib Get Relative Cursor Position Method

Gets the position of the file cursor relative to the beginning of the file.

Clib Move Cursor to Beginning of File Method

Moves the file cursor to the beginning of a file.

Clib Read From File Method

Reads data from a file.

Clib Restore Cursor Position Method

Sets the current file cursor to a position that you specify.

Clib Scan and Convert from Input Device Method

Reads input from an input device and stores the data in arguments.

Clib Set Cursor Position Method

Sets the cursor position in a file.

Clib Unget Method

Pushes a character back to a file.

Clib Write Character Method

Writes a character to a file.

Clib Write Formatted String Method

Writes a formatted string to a file.

Clib Write String to File Method

Writes a string to a file.

Clib Write to File Method

Writes data to a file.