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. I think this is on purpose because writing is more dangerous than
reading. :slight_smile:

    robert