createAlways Constant

Top  Previous  Next

Specifies that an empty file should always be created.

Syntax

File.createAlways

Remarks

This constant is used only with open function. It specifies that an empty file should always be created; if the file already exists, it is truncated to zero length.

Examples

f = File.open("test", File.createAlways | File.openFile);

See Also

open Function