Hey guys, I would like to write 5 lines to a text file, and if I enter "stop", the program should terminate. It works, however "stop" is written to the text file as well. This tells me that the "else" code is run after I type "stop", can't figure why.
Thanks naraku, it works now, but I don't understand the difference. Before, why did the 'stop' appear in the output, even though the else code wasn't used for it?