On Tuesday, April 22, 2003, 4:13:04 AM, Jim wrote:

> Hi

> When learning ruby back in 1.6 days, I would see
> examples that would use IO and some that would use file.

> For example, I would commonly see

>   lines = IO.readlines(file)

> and some that would use File:

>   File.open(file).each { |line|
>     ...
>   }

> I don't know if this is new to 1.8 or not, but I noticed
> that I can do

>   lines = File.open(file).readlines


In 1.8 you can also do File.read(path) and get back a single String.
I'd like a File.write(path, data) equivalent.

Gavin