Microsoft SDK for Java

File.close

Closes this file.

Syntax

public void close()

Remarks

Unless the File object was created from an existing file handle, the underlying file handle is closed using the CloseHandle Windows API function. Once closed, it is an error to perform operations on the file. Attempts to do so will raise an IOException. To reopen a file, create a new File object.

Overrides   DataStream.close

See Also   IByteStream.close

© 1999 Microsoft Corporation. All rights reserved. Terms of use.