fgets()

This is a File I/O function. It is not implemented in the Compiler.

Syntax
  #include <stdio.h>

    char *fgets(char *s, int n, FILE *f);
Description

fgets() reads a string of at most n-1 characters from file f into s. Immediately after the last character read, a '\0' is appended. If fgets() reads a line break ( '\n') or reaches the end of the file before having read n-1 characters, the following happens:

Return

NULL, if there was an error; s otherwise.

See also

fgetc() and

fputs()