From: Ryan Davis Date: 2008-01-26T04:06:22+09:00 Subject: Re: Too many open files (Errno::EMFILE) on Windows On Jan 25, 2008, at 10:55 , Jim Surname wrote: > The ultimate fix will be to use the Win32 API or MFC for dealing with > files on Windows instead of the C Run-Time API, which should up the > limit to some insanely high number. no. the ultimate fix is to use block form: File.open path, mode do |f| # ... end