fileTruncate

Description

Clears the content of the specified file.

Parameters

Return Type

Boolean

Returns true if the file is truncated.

Example

Example 1

use "file"; truncate("fileToTruncate.txt");

See also

Peacock