From: Robert Klemme Date: 2005-09-14T20:16:33+09:00 Subject: Re: Optimizing a single slow method Hugh Sasse wrote: >> see an associated block, it doesn't handle the cleanup for you. > > Yes, that's right. I wonder if it is worth the price in garbage > collection to explicitly close in this case? Probably not given > maintenance costs. The closing isn't that costly. And if you later change the script you might run into errors when omitting proper closing of file descriptors. I made it a habit to always use the block form (except where not applicable for application reasons). That way you're always on the safe side. Kind regards robert