Original Post
Basically, I have an ifstream object representing an open file. I want to copy a part of the data from this stream to a buffer in local memory, and then access the buffer through an istream object. I've tried with different combinations of streambuf's and stringstreams, but I just can't get it to work properly. Surely there must be a way to accomplish this in a non-ugly manner? /John