2 ms·
This didn't work for me. I just changed "w" to "wb" on XP and nickb's original worked fine: require 'open-uri'; (1..34).to_a.each{|x| open('http://www.dspguid
by pchristensen 18y ago
This didn't work for me. I just changed "w" to "wb" on XP and nickb's original worked fine:
require 'open-uri'; (1..34).to_a.each{|x| open('http://www.dspguide.com/CH'+x.to_s+'.PDF' http://www.dspguide.com/CH'+x.to_s+'.PDF'){|u| File.open("CH#{x}.PDF","wb"){|f|f.puts u.readlines}}}