This wiki is out of date, use the continuation of this wiki instead

Fgets

From FenixWiki

Revision as of 13:26, 26 June 2007 by Sandman (Talk | contribs)
Jump to: navigation, search


Contents

Definition

STRING fgets ( <INT filehandle> )

Reads a line from a certain file and returns it. Subsequent calls will return the next line, until the end of the file is reached.

Parameters

INT filehandle - The handle of the file returned by fopen.

Returns

STRING: The line read.

Notes

The returned string normally does not contain the '\n' or '\r','\n' charactersets.

When a line ends with the character '\', the next line will be joined with the current one, changing the '\' character to a '\n' character.

Personal tools