Hello !

I'm trying to get a web page width open-uri width this code :

require 'open-uri'
open("http://www.google.com") {|src|
  open("test.htm","wb") {|dst|
      dst.write(src.read)
  }
}

But it returns me :
cannot convert File into String

src should be a Tempfile.
I think there is an other method called open, what is the full name of
the open uri method ? How could I do ?

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