delim ignore(), :
streampos old = is.tellg();
is.ignore(num, '\n');
if (is.tellg() != old + num) {
}
, , ignore() , . , , tellg() old + num. AFAIK , . , .
I also don’t know if and when it will be more than just reading numbytes and looking for it for newlines. My initial thought was: "what part of the difference between ignore()and is read()not obvious?"; -)
source
share