File Directory Ruby

puts "They're identical!" if File.identical?("file1.txt", "file2.txt")