I think I put the code in a wrong spot... It just like a LOOP in VB. I get like 10 copies of the text every time I click the button, and yes it appends... But where do you put the:
Code:
ofstream OP("test.txt",ios::app);
...