getline (string) - C++ Reference
(1) istream& getline (istream& is, string& str, char delim); istream& getline (istream&& is, string& str, char delim); (2) istream& getline (istream& is, string& str); istream& getline (istream&& is, string& str); Get line from stream into string Extracts characters from is and stores them into str until the delimitation character delim is found (or the newline character, '\n', for (2)).