From: Dominic Sisneros Date: 2008-05-15T14:18:16+09:00 Subject: Re: Need help for finding difference between files ------=_Part_3290_5076380.1210828695969 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline ruby diff-lcs will do this On Wed, May 14, 2008 at 12:32 AM, Clement Ow wrote: > Cheyne Li wrote: > > Hi, there > > > > Is there a simple way to find the difference between two files? I'm a > > new ruby learner. I'm not familiar with the Stander class in Ruby. Is > > there any can find the difference between two files and return a string > > or array? > > What kinda difference do you wanna look at? is is file attributes? > > You can try something like File.compare or File.fnmatch which wll return > true if the file matches.. > > If it's not something what you really need, please do explain your > situation abit more and maybe more people might be able to help ;) > -- > Posted via http://www.ruby-forum.com/. > > ------=_Part_3290_5076380.1210828695969--