File.create

Overview | Methods | This Package | All Packages

File.create

Creates a new file.

Syntax

public static File create( String path )

Parameters

path

The name of the file to create.

Return Value

Returns a File object for the new file.

Exceptions

WinIOException thrown if an error occurs.

Remarks

If a file with the specified name exists, it is truncated to zero length. The returned File object will have both read and write access to the new file.

See Also   close