Thank you for the reply..........I'm pretty green at this. I'm not quite sure which parts of your reply I am to substitute my own names, or files for (i.e. $fh 'moo!', etc.). Could you clarify? Which parts of your code other than the variable name, would I change?