From: Dave Bass Date: 2008-06-27T01:29:12+09:00 Subject: Re: Comparing 2 files. Aaron Scott wrote: > 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. The first thing you could try is to stat the files (builtin File::Stat class) and see if there are any relevant differences between them (e.g. size, mtime). Or you could ask the OS to do a diff on the files. Or you could read each file into a string and compare the two strings. Or... -- Posted via http://www.ruby-forum.com/.