IO vs. File

Donkey Agony wrote:

Also, there doesn't appear a similarly simple File.write that does all
the dirty work for you. The most concise I've come up with is:

    File.open("test.html", "wb") { |f| f.write(str) }

Am I missing something?

No, and I agree it's a nuisance. Matz doesn't consider it to be a
common enough activity to warrant a method, last I heard. I define
File.write myself and use it frequently.

See http://extensions.rubyforge.org or the core/facets project (which
is more current in its maintenance).

Gavin