Re: best way of copy istream to ostream
- From: Pete Becker <petebecker@xxxxxxx>
- Date: Wed, 26 Apr 2006 10:26:55 -0400
Tom Widmer [VC++ MVP] wrote:
Pete Becker wrote:
copy(istream_iterator<unsigned char>(input), istream_iterator<unsigned char.(), ostream_iterator<unsigned char>(output, ""));
Don't you mean:
copy(
istreambuf_iterator<char>(input),
istreambuf_iterator<char>(),
ostreambuf_iterator<char>(output)
);
That would also work.
--
Pete Becker
Roundhouse Consulting, Ltd.
.
- References:
- best way of copy istream to ostream
- From: bg
- Re: best way of copy istream to ostream
- From: Pete Becker
- Re: best way of copy istream to ostream
- From: Tom Widmer [VC++ MVP]
- best way of copy istream to ostream
- Prev by Date: Re: best way of copy istream to ostream
- Next by Date: filebuf::underflow() bug in VS2005's stdlibrary
- Previous by thread: Re: best way of copy istream to ostream
- Next by thread: Re: best way of copy istream to ostream
- Index(es):