Specifies how the operating system should open a file.
Namespace: Crestron.SimplSharp.CrestronIOAssembly: SimplSharpHelperInterface (in SimplSharpHelperInterface.dll) Version: 2.21.121
Syntax
Members| Member name | Value | Description |
|---|
| CreateNew | 1 |
Specifies that the operating system should create a new file. If the file already exists, an IOException is thrown.
|
| Create | 2 |
Specifies that the operating system should create a new file. If the file already exists, it will be overwritten.
|
| Open | 3 |
Specifies that the operating system should open an existing file.
|
| OpenOrCreate | 4 |
Specifies that the operating system should open a file if it exists; otherwise,
a new file should be created.
|
| Truncate | 5 |
Specifies that the operating system should open an existing file. Once opened,
the file should be truncated so that its size is zero bytes.
|
| Append | 6 |
Opens the file if it exists and seeks to the end of the file, or creates
a new file. FileMode.Append can only be used in conjunction with FileAccess.Write.
|
Version Information
.NET
Supported in: 6.0
.NET Compact Framework
Supported in: 3.5
See Also