From: Joel VanderWerf Date: 2005-01-12T14:18:56+09:00 Subject: Re: Comparing two files for equality Edgardo Hames wrote: > Hi everybody, > > After reading the "Refactoring for PL/SQL Developers" in the January > issue of the Oracle magazine, I tried to implement a program that > compares two files for equality. I came up with the following trivial > solution > > puts (IO.readlines file[0]) == (IO.readlines file[1]) > > Have you got any other suggestions? Is this cheating? require 'fileutils' p FileUtils.cmp(file[0], file[1])