Can i just confirm whats going on here. You are loading the contents of 
the file into memory and obtaining an MD5 checksum of the data in 
memory? What is the difference between file.open and file.read also what 
does the , "rb" do?

Many thanks



Austin Ziegler wrote:
> On 12/5/06, Denys Yakhnenko <dyakhnenko / linkp.com> wrote:
>> ***end code***
> File.read is a bad choice on Windows. It should be avoided if at all
> possible. Do this instead:
> 
>   puts Digets::MD5.hexdigest(File.open("C:\\dc.log", "rb") { |f| f.read 
> })
> 
> -austin

-- 
Posted via http://www.ruby-forum.com/.