title: C++ Extract the contents of an istream and copy to another
body: <p>I was wondering how I would go about sucking out the contents of one istream and saving it in another istream. It seems explicit copying doesn't seem to work for streams, so I was wondering if this could be achieved instead. </p>