Add a helper function to compare file contents