From: botp Date: 2009-08-18T11:11:13+09:00 Subject: Re: while !file.eof? On Mon, Aug 17, 2009 at 2:50 PM, Robert Klemme wrote: > You're not closing the file handle properly. :-) > i was leaning on the op's example... :) For the record, when it comes to file handling, i do not even do shortcuts ;) i think i have a question for you, cool ruby hacker robert: if i do something like, File.open(foo).each do blah end will ruby be able to cleanup the orphaned file handle? > Better: > > File.foreach "maillog" do |line| i am not a fan of foreach because i do not like the method name as used... it's like saying "for each file"?? but that is just me... best regards -botp