Is there anyway I can transfer data from an fstream (a file) to a stringstream (a stream in the memory)?
fstream
stringstream
Currently, I\'m using a buffer, but th
If you're using Poco, this is simply:
#include ifstream ifs(filename); string output; Poco::StreamCopier::copyToString(ifs, output);