私はistream::getを読みましたが、疑問はまだ残っています。私の区切り文字が実際にはNULLの「\0」文字であるとしましょう。この場合はどうなりますか?私が読んだものから:
If the delimiting character is found, it is not extracted from the input sequence and remains as the next character to be extracted. Use getline if you want this character to be extracted (and discarded). The ending null character that signals the end of a c-string is automatically appended at the end of the content stored in s.
「readline」よりも「get」を好む理由は、文字ストリームを「streambuf」に抽出できるためです。