Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2006-04-11 06:33:38


David Abrahams wrote:
> Jeff Garland <jeff_at_[hidden]> writes:
>
>> Sounds good. I am worried that even with the iostream integration
>> the proposal won't have Doug's one-line wget implementation, but
>> we'll see.
>
> Fortunately, Doug wrote "one slide," not "one line."

    std::ifstream is( "http://www.example.com/file.zip" );
    std::ofstream os( "file.zip" );
    os << is.rdbuf();

No proposal required, in principle.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk