Joel VanderWerf wrote:
> Why are you doing it a byte at a time? 
just ran out of ideas ;-)

> This seems to run much faster for me:
> 
> require 'open-uri'
> 
> open("http://path.berkeley.edu/~vjoel/redshift/ruby-sdforum.pdf") do |u|
>   targetFile = File.new("test.pdf","w")
>   loop do
>     dat = u.read(1000)
>     break unless dat
>     targetFile.write dat
>   end
> end

Fantastic!

Thanx a lot.

-Yochen


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