Microsoft SDK for Java

File.exists

Determines whether a file exists.

Syntax

public static boolean exists( String path )

Parameters

path

The path of the file to test.

Return Value

Returns true if the file specified by the designated path exists; otherwise, returns false.

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