From: Bil Kleb Date: 2007-03-05T01:10:08+09:00 Subject: Re: How to download file from web site ara.t.howard@noaa.gov wrote: > > require 'open-uri' > uri = 'http://rubyforge.org/frs/download.php/17670/RMagick-1.15.3.tar.gz' > > open(uri) do |fin| > open(File.basename(uri), 'w') do |fout| > while(buf = fin.read(8192)) > fout.write buf > end > end > end He asks naively... Why is this so complicated, e.g., the 8192 buffered write, etc.? Later, -- Bil Kleb http://fun3d.larc.nasa.gov