How do I open a web page and write it to a file in ruby?

Viewed 6794

If I run a simple script using OpenURI, I can access a web page. The results get written to the terminal.

Normally I would use bash redirection to write the results to a file.

How do I use ruby to write the results of an OpenURI call to a file?

2 Answers
Related