Quote Originally Posted by Cpro View Post
Well, you are already prompting the user for more information; you just need to write it to the end of the file.
Here is how I wold go about it:
Move the for loop out of the while loop (if you haven't already).
Close the file after you output the contents of the file (the for loop).
Re-open the file with ofstream.
Add an else statement to the end of the while loop to output the string to the file, as long as the first character isn't Q.

So, you are really only adding about 3 lines of code this way.
Thanks for the help!

so does this mean the author made an error?