From: Roger Pack Date: 2010-02-07T06:17:48+09:00 Subject: Re: Bug: Ruby 1.9.1 File io on Windows is slooooow > f.print(l) > f.flush If you remove the flush it seems to work *much* faster. This might be a bug in core. I'd probably report it. I think to avoid the slowdown with reads you can "hack a work around" like c = File.open('out.file','rb') { |f| f.read } c.gsub!("\r\n", "\n") But there might be a bug in there, too. [1] -rp [1] http://redmine.ruby-lang.org/issues/show/1332 -- Posted via http://www.ruby-forum.com/.