From: Robert Klemme Date: 2012-03-14T04:22:44+09:00 Subject: Re: Any function similar to PHP's file_get_contents() ? On Tue, Mar 13, 2012 at 5:41 PM, Iñaki Baz Castillo wrote: > 2012/3/13 Bartosz Dziewoński : >> You need to require 'open-uri' first, then it will work. But >> personally I never liked this style. > > Ok, then a simpler solution: > >  document = open('http://www.google.com/').read document = File.read 'http://www.google.com/' Cheers robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/