in reply to file comparison

If the files are small (which is relative to your system resources), you could simply slurp the files into variables and do a straight out 'eq' test.