Я внимательно прочитал введение о std: :istreambuf_iterator на cppreference, но прямого ответа на этот вопрос нет.
Вот фрагмент кода:
Код: Выделить всё
#include
#include
#include
#include
int main()
{
//with seekg to the end
{
std::cout
Подробнее здесь: [url]https://stackoverflow.com/questions/78544122/why-does-stdistreamseekg-affect-the-behavior-of-stdistreambuf-iterato[/url]
Мобильная версия