sub writefile { open (FILE, ">>myfile.txt"); print FILE "hello\n"; }