Ensure the property-file is always closed after reading it - don't rely on
garbage collection.

----- Original Message -----
From: "Peter Donald" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, October 02, 2000 11:42 AM
Subject: Re: <delete> unable to remove a file


> >I'm not sure what Java is 'required to do' if you use something like
> >'props.load(new FileInputStream(file));' - it can immediately close the
file
> >after loading, but will it do in all cases?
>
> Nope and it is the source of much hell in developing on NT. You should
> always explictly close all file handles or else NT will not be able to
> delete them ;(
>

Attachment: property.patch
Description: Binary data

Reply via email to