#Open the 'txt' file for appending. Creates the #file_name if it doesn't already exist open FH, '>>', "$file_name.txt" or die "Error:$!\n";