Hello, I'm trying to let the user enter a string that will later be written to a file. The problem is that I don't know how to let the user enter paragraphs. When the user presses Enter, the file is written and the program ends.
I have tried to include a while statement, but I don't seem to get it right and so I have not posted it.
You need to put your getline inside a while loop that tests a bool variable before every interation. Make an uncommon command exit the process something like "!!GOBLINSROCK!!" so that your loop tests the users data everytime it executes and sets the bool variable to false when it sees this entry causing the loop to exit.