Hi,

On 09/27/2010 02:09 PM, Steven Schveighoffer wrote:
> On Sun, 26 Sep 2010 20:20:18 -0400, Michel Fortin
>> In fact, it's generally a good idea to not wait for the GC to collect
>> your objects before closing files, because waiting for the GC could
>> take an indeterminate amount of time and leave files open for a long
>> time (the GC only runs when needed).
> 
> Yes, this is true no matter what File construct you use.

I'll keep that in mind and will go for a cleanup method that I have to
call explicitely. Especially files should probably only be opened if in
use or if one wants to prevent others from using it.

Cheers,
Tom

Reply via email to