From: Johan Holmberg Date: 2004-01-16T08:43:03+09:00 Subject: Re: HT compare files in Ruby?... On Fri, 16 Jan 2004, Joel VanderWerf wrote: > > Kurt Euler wrote: > > 1) If there is a Ruby (boolean?) method that will compare the contents of > > two files and return indication as to whether or not their contents are > > identical? > > require 'ftools' > File.cmp('f1', 'f2') > Or maybe require 'fileutils' FileUtils.cmp('f1', 'f2') For some reason Ruby always seem to have at least two ways of doing things ;-) /Johan Holmberg