Bug #906: File.close not working good in Windows
http://redmine.ruby-lang.org/issues/show/906

Author: Yong Lu
Status: Open, Priority: Normal

I'm not sure this is a bug or not.I use Windows Vista. I found that I could reopen a file many times and pass them to different variables. If I want to delete the file I have to close them all. for example:
f1=File.new("test.txt")
f2=File.open("test.txt")
#f1.close
f2.close
File.delete "test.txt"

it would cause an Error like "Permission Denied" unless I remove the #


----------------------------------------
http://redmine.ruby-lang.org