print MYOUTFILE "Testing 1 2 3"; #write text, no newline print MYOUTFILE "\n"; #write newline print "Wrote to file \n"; #if this doesn't show in the browser, #the script didn't write to the file close(MYOUTFILE); print "Closed MYFILE \n"; #if this doesn't show in the browser, #the script didn't close the file print " \n";