Last updated 4 years ago
Was this helpful?
istream& getline (istream& is, string& str, char delim);
By default delim is \n. See .
delim
\n
Take for example, we can read the string segment using:
getline(version1, segment, '.')
iss.eof(); // returns true if it has reached EOF. iss.good(); // returns true if none of the error state flags (eofbit, failbit and badbit) is set.