--0014853493401d809f04670b1217 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit On Wed, Apr 8, 2009 at 9:14 AM, Idealone Ideally <shekarls / gmail.com> wrote: > bwv549 wrote: > > yes, this should download any kind of file (including excel). I use > > it to read/write mp3 files from online: > > > > require 'open-uri' > > open("http://someplace.com/somefile.mp3") do |in_io| > > File.open("somefile.mp3", 'w') do |out_io| > > out_io.print in_io.read > > end > > end > > ---------------------------------------------------------------- > > Thanks guys for the reply. > Actually i had mistaken that the download picks the file from web > server, but after talking to my developers i realized that they are > internally getting the file using ftp. > I wanted to know how can i "pull a file from ftp". Is there any ruby > library to pull or push files through "ftp" > > Open-uri also works with ftp uri's http://www.cs.tut.fi/~jkorpela/ftpurl.html -- Rick DeNatale Blog: http://talklikeaduck.denhaven2.com/ Twitter: http://twitter.com/RickDeNatale WWR: http://www.workingwithrails.com/person/9021-rick-denatale LinkedIn: http://www.linkedin.com/in/rickdenatale --0014853493401d809f04670b1217--