Checking whether two files are identical is easy : identical « File Directory « Ruby






Checking whether two files are identical is easy


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

 

Related examples in the same category

1.Are two files identical