Issue #9458 has been reported by pradeek kyahvi.

----------------------------------------
Bug #9458: File write mode
https://bugs.ruby-lang.org/issues/9458

* Author: pradeek kyahvi
* Status: Open
* Priority: Urgent
* Assignee: ruby-core
* Category: core
* Target version: 
* ruby -v: 2.1.0p0
* Backport: 1.9.3: UNKNOWN, 2.0.0: UNKNOWN, 2.1: UNKNOWN
----------------------------------------
As i am working ruby 2.1.0p0,it is found that File write mode is pushing the data in to file with out calling the close method on File Oject.When i quit the irb enviroment with out calling the close method,the data is wrote to the file.




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