std::fgets
From cppreference.com
Defined in header <cstdio>
|
||
char* fgets( char* str, int count, std::FILE* stream ); |
||
Reads at most count - 1 characters from the given file stream and stores them in the character array pointed to by str. Parsing stops if a newline character is found, in which case str will contain that newline character, or if end-of-file occurs. If bytes are read and no errors occur, writes a null character at the position immediately after the last character written to str.
Contents |