File.open

Overview | Methods | This Package | All Packages

File.open

Opens an existing file for read and write access.

Syntax

public static File open( String path )

Parameters

path

The path of the file to open.

Return Value

Returns a File object for the opened file.

Exceptions

WinIOException thrown if an error occurs.

Remarks

This method is a convenient way of constructing a new File object with the FileMode.OPENFileAccess.READWRITE, and FileShare.NONE flags.

See Also    openRead, close