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
// need to include and , and of course and ifstream fin("input.txt"); ostringstream sout; copy(istreambuf_iterator(fin), istreambuf_iterator(), ostreambuf_iterator(sout));