Aaron Scott wrote:
> I'm very new to Ruby.  I'm wondering if it is possible to compare 2 text 
> files and if those files have any differences in them that I can then 
> automatically send myself an email stating that the 2 files are not the 
> same.  Thanks for any help.  I tried using ruby_diff but I don't think 
> it will work for my purposes.
> 
> Aaron

>ri FileUtils#compare_file
------------------------------------------------- FileUtils#compare_file
     compare_file(a, b)
------------------------------------------------------------------------
     Returns true if the contents of a file A and a file B are
     identical.

       FileUtils.compare_file('somefile', 'somefile')  #=> true
       FileUtils.compare_file('/bin/cp', '/bin/mv')    #=> maybe false


     (also known as identical?, cmp)
-- 
Posted via http://www.ruby-forum.com/.