in reply to Diff 2 files and print output to file

If this isn't a homework assignment, just use the Unix comm utility.