From: Run Paint Run Run Date: 2010-03-06T23:58:14+09:00 Subject: [ruby-core:28533] Re: [Feature #1081] add File::write() convenience method > I give up. ��I have already reverted and deleted the two methods. > > I wrote the patch because I thought closing the ticket encourages 1.9.2 > release. > But it seems to take some time to make the feature stable, and I became > afraid that it may delay the release. ��It is never the effect I expected. > > I think refactoring io.c is needed to implement the feature. > open argument is easy to use, but difficult for me to implement :-( Why don't we just start simple? Add IO.write and IO.binwrite that take exactly two arguments--a path and a string--and truncate the file and write to it the string. That covers the common use case which inspired this ticket, and allows the optional arguments to be added later without breaking compatibility.