psuedocode: open main file for parsing; #not file1 or file2 parse out each file within this file; when reach $file1 send to subroutine; when reach $file2 send to subroutine; exit script;