On Aug 17, 2006, at 2:40 PM, fabsy wrote:

> Hey!
> I have been going through some basic IO stuff and want to get into
> something more "advanced".
> I would like to make a script who asks for a website and takes the
> information (the text) on the website and put it into a textfile..
>
> So now im wondering.. how do I tell the script to download/read
> text/content from a website.. How do I do it? ( of course i do not  
> want
> anyone to actually write this script for me, i want to write it myself
> but im a newbie and don't know which libs and etc to read in)

You are looking for the open-uri library.  See if these docs are  
enough to get you going:

   http://www.ruby-doc.org/stdlib/libdoc/open-uri/rdoc/index.html

James Edward Gray II