C++ Programming/Code/Standard C Library/Functions/fgets

fgets
The function  reads up to   - 1 characters from the given file stream and dumps them into. The string that  produces is always null-terminated. will stop when it reaches the end of a line, in which case  will contain that newline character. Otherwise,  will stop when it reaches   - 1 characters or encounters the   character. returns  on success, and   on an error.


 * Related topics: fputs - fscanf - gets - scanf