If all you want to do is read every byte from an input-source to
an ofstream, this should work:
Code:
ofstream outputFile("ResourceGroup");
ifstream inputFile(inputString.c_str();
outputFile << inputFile.rdbuf();
I'm missing out some very important functions; before you use
fstreams, use the member function is_open to make sure they
opened successfully.

--Paul