open(OFILE, ">test.txt"); # make a filehandle print OFILE "this is a test.\n"; # print to filehandle