From: Doug Glidden <41mortimer@...> Date: 2008-09-15T20:59:52+09:00 Subject: Re: Q: IO.read() and IO.write() kwatch wrote: > Hi, > > I have questions about IO and File class. > > * Why is IO.read(filename) defined? > IMO, File.read() is more natural than IO.read() because > IO class is not related to filename, I think. > > * Is there any reason that IO.write() (or File.write()) is not > provided? > I have to define File.write() for each project... > It is easy to define File.write() but I hope it is provided by Ruby. Is there a reason you can't use File's concatenation (<<) operator? Doug -- Posted via http://www.ruby-forum.com/.