From: Yong Lu Date: 2008-12-19T11:51:30+09:00 Subject: [ruby-core:20680] [Bug #906] File.close not working good in Windows Issue #906 has been updated by Yong Lu. Hi,matz:-) I wonder if you could make a list for all the opened files. So when we call File.close we can close them all. for example: #suppose there is a map like: File.lists=={} f1=File.new("test.txt") #which will cause: File.lists["test.txt"]=[] and File.lists["test.txt"] << f1 f2=File.open("test.txt") #which will cause: File.lists["test.txt"] << f2 f2.close #which will cause: File.lists["test.txt"].each {|e| e._close} ---------------------------------------- http://redmine.ruby-lang.org/issues/show/906 ---------------------------------------- http://redmine.ruby-lang.org