Zeilenweises einlesen in C

gibt es in C einen Befehl, mit dem ich von einer geöffneten Textdatei zeilenweise einlesen kann (die Zeilen sind unterschiedlich lang)

Danke

Martin

Ja, fgets

MfG Lutz

SYNOPSIS
#include

char *gets(char *s);

char *fgets(char *s, int n, FILE *stream);

char *fgets_unlocked(char *s, int n, FILE *stream);

DESCRIPTION
gets() Reads characters from the standard input stream, stdin,
into the array pointed to by s, until a new-line
character is read or an end-of-file condition is
encountered. The new-line character is discarded and
the string is terminated with a null character.

fgets() Reads characters from the stream into the array pointed
to by s, until n-1 characters are read, a new-line
character is read and transferred to s, or an end-of-
file condition is encountered. The string is then
terminated with a null character.

[Bei dieser Antwort wurde das Vollzitat nachträglich automatisiert entfernt]