$file='test.txt'; open(INFO, $file) or die("Could not open file."); foreach $line (<INFO>) { print $line; } close(INFO);