File Input/Output functions
|SYNTAX||fgets( filehandle )|
|FUNCTION|| The fgets function reads a string from the input file (defined by filehandle argument ) and returns it as a result.
fgets reads characters from the current file position to and including the first newline character, or to the end of the file whichever comes first. The newline character, if read, is included in the returned string.
The filehandle argument is a number returned by fopen function. The file has to be opened with "r" flag (for reading).
NOTE: fgets() reads maximum 1024 characters per line. Lines longer than that can be read using sequential calls to fgets() and "adding" (concatenating) results.
|SEE ALSO||fopen() function , fclose() function|
The fgets function is used in the following formulas in AFL on-line library:
Updated on-line reference