I was wondering how to clear a string stream variable. Heres an example of what I'm using it for:
You save 2 files. The first named "Fileo.txt" and the second "Filet.txt". The first saves correctly but the second one saves as "Fileo.txt Filet.txt".
How can I clear the variable?
I'm using it to save a file, you name the first file, then the second. When it saves them it save incorrectly. I don't think it'll be easy to diagnose since the program is complex. I don't know but the code above might be different then what I need cause I'm saving a file instead of displaying it in a "cout".