Checking whether two files are identical is easy
puts "They're identical!" if File.identical?("file1.txt", "file2.txt")