I need a better understanding of how stringstream works. What I am trying to do is write a code that sends data to an html page, but I'm not sure if it works the same as writing to an output file because my html page shows up blank.
This does not matter. ss and oFile are different streams and have no relation to each other. So if you want outpu something to file opened by oFile, you should output it to oFile.