getline
Syntax:
#include <fstream> istream& getline( char* buffer, streamsize num ); istream& getline( char* buffer, streamsize num, char delim ); The getline() function is used with input streams, and reads characters into buffer until either:
Those using a Microsoft compiler may find that getline() reads an extra character, and should consult the documentation on the Microsoft getline bug. |