[REBOL] Newbie read question?
From: kpeters::vu-ware::com at: 2-Mar-2005 17:14
Hi all ~
am trying to download two (or more) PDFs as per my script below - but all I ever end
up with is
the correct number of files with only ~ 1.5 k each instead of their proper sizes.
What am I doing wrong?
Thanks,
Kai
REBOL[]
pdfs: [
"06 - Aquatics.pdf"
"07 - Aquatics.pdf"
]
baseurl:
"http://kelowna.ca/citypage/scripts/PDF_Display.cfm?ftd=../docs/pdfs/Departments/Parks
and Leisure Services/Brochure/Previous Brochures/Brochure 2004c Summer/"
foreach pdf pdfs [
cururl: to-url append copy baseurl pdf
fname: append copy %/c/ pdf
print pdf
write/binary fname read/binary cururl
]
print "Done"