open OUF, '>', 'mergefile.out' or die "opening output file";