openAlways Constant

Top  Previous  Next

Specifies that the file or folder should be created if it does not exist.

Syntax

File.openAlways

Remarks

This constant is used only with open function. It specifies that a file or folder should be opened if it already exists, or created if it does not.

Examples

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

See Also

open Function