open (INFILE, '<', 'textfile.txt'); while () { chomp; print "$_\n"; } close (INFILE);