K
kwatch
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.
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.