From: Vincent Fourmond Date: 2006-12-06T07:01:39+09:00 Subject: Re: md5 function in Ruby Denys Yakhnenko wrote: > ***begin code*** > require 'digest/md5' > > md5=Digest::MD5.hexdigest(File.read("C:\\dc.log")) > puts md5 > ***end code*** For me, on a Linux box, with a random file, it works fine. Are you sure your file is read properly ? See: > 22:47 vincent@tanyaivinco ~ irb1.8 >> require 'digest/md5' => true >> md5=Digest::MD5.hexdigest(File.read("qt-enum.patch")) => "c15a3cfc054d9af29b40a37805c27dbf" >> % 22:48 vincent@tanyaivinco ~ md5sum qt-enum.patch c15a3cfc054d9af29b40a37805c27dbf qt-enum.patch Vince -- Vincent Fourmond, PhD student http://vincent.fourmond.neuf.fr/