print MYFILE "$mycomments";
Puts, or “prints,” the text associated with the $mycomments variable (the text entered in the comments textbox in the form) into the file assigned to the MYFILE file variable—textthought.txt.
However, because MYFILE was opened for append (>>), the old text remains in texxthought.txt, and the new text is added to the end of it.