FileMode.TRUNCATE

Overview | Methods | Fields | This Package | All Packages

FileMode.TRUNCATE

Specifies that an existing file it to be opened and then truncated so that its size is zero bytes.

Syntax

public static final int TRUNCATE;

Remarks

The calling process must open the file with at least write access. An exception is thrown if the file does not exist.