From: Yong Lu Date: 2008-12-19T13:35:59+09:00 Subject: [ruby-core:20683] [Bug #906] File.close not working good in Windows Issue #906 has been updated by Yong Lu. Hi, * file may not be opened from this process. * implicit close may be worse than error for many cases. It should not be implicit. Maybe you can add a argument for the File.close method,for example: def File.close close_all=false ... end I think it would be more convenience if it have this option. When I using console to create a file and then open it I always forget to assign it to a variable. Then I have to exit the console and reenter it otherwise I can't write the file anymore. For example: #suppose I am in an irb console >>File.new("test.txt") >>f=File.open("test.txt") >>f.close #at this time with my jedit editor I can't write the test.txt file anymore until I exit the console. ---------------------------------------- http://redmine.ruby-lang.org/issues/show/906 ---------------------------------------- http://redmine.ruby-lang.org