Click or drag to resize

FileMode Enumeration

Specifies how the operating system should open a file.

Namespace: Crestron.SimplSharp.CrestronIO
Assembly: SimplSharpHelperInterface (in SimplSharpHelperInterface.dll) Version: 2.21.121
Syntax
C#
public enum FileMode
Members
Member nameValueDescription
CreateNew1 Specifies that the operating system should create a new file. If the file already exists, an IOException is thrown.
Create2 Specifies that the operating system should create a new file. If the file already exists, it will be overwritten.
Open3 Specifies that the operating system should open an existing file.
OpenOrCreate4 Specifies that the operating system should open a file if it exists; otherwise, a new file should be created.
Truncate5 Specifies that the operating system should open an existing file. Once opened, the file should be truncated so that its size is zero bytes.
Append6 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