Paul Lutus wrote:

>   File.open(dest) { |f| f.write(result) } if data != result

s/File.open(dest)/File.open(dest,"w")/

Also "not tested!". That may seem obvious at this point.

-- 
Paul Lutus
http://www.arachnoid.com