🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.c
Article #309731

Re: Problem z std::istream

#309731
From: bartekltg
Date: Wed, 04 Jul 2018 12:50
18 lines
1495 bytes
On 03.07.2018 19:17, Borneq wrote:
> Jeśli przeczytam ze strumienia do końca, nie daje się już cofnąć za 
> pomocą seekg i przeczytać.
> Trzeba zamykać strumień i tworzyć go na nowo, to nie tylko czasochłonne, 
> ale muszę znać ścieżkę do pliku, nie można po prostu działać z 
> procedurą, która ma ogólny strumień jako parametr.

A z czego czytasz?

Jak chcesz się cofnać np gdy twoim strumieniem jest cin?!

 > Może jest jakiś inny strumień dostępny w c++ niż std::istream?

Czy to pytanie sugeruje, że nie otworyułęś http://www.cplusplus.com
ani https://en.cppreference.com

pzdrt
bartekltg
Technical Details
Message-ID: <phifqp$k9a$1@node2.news.atman.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!newsfeed2.atman.pl!newsfeed.atman.pl!.POSTED!not-for-mail
References: <phgb39$l7r$1@node2.news.atman.pl>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!newsfeed2.atman.pl!newsfeed.atman.pl!.POSTED!not-for-mail
From: bartekltg <bartekltg@gmail.com>
Newsgroups: pl.comp.lang.c
Subject: Re: Problem z std::istream
Date: Wed, 4 Jul 2018 14:50:32 +0200
Organization: ATMAN - ATM S.A.
Lines: 18
Message-ID: <phifqp$k9a$1@node2.news.atman.pl>
References: <phgb39$l7r$1@node2.news.atman.pl>
NNTP-Posting-Host: 89-70-113-215.dynamic.chello.pl
Mime-Version: 1.0
X-Trace: node2.news.atman.pl 1530708633 20778 89.70.113.215 (4 Jul 2018 12:50:33 GMT)
X-Complaints-To: usenet@atman.pl
NNTP-Posting-Date: Wed, 4 Jul 2018 12:50:33 +0000 (UTC)
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0
In-Reply-To: <phgb39$l7r$1@node2.news.atman.pl>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit