From: Gavin Sinclair Date: 2006-01-10T18:58:01+09:00 Subject: Re: 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