File.openRead

Overview | Methods | This Package | All Packages

File.openRead

Opens an existing file for read access only.

Syntax

public static File openRead( 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.OPEN, FileAccess.READ, and FileShare.READ flags.

See Also   open, close