Table of Contents

Enum FileOpenModeFlags

Namespace
TwinSharp
Assembly
TwinSharp.dll

The FileOpenModeFlags enum defines various modes for opening files, each represented by a unique flag. These flags can be combined using bitwise operations to specify multiple modes simultaneously.

public enum FileOpenModeFlags

Fields

FOPEN_MODEAPPEND = 4

"a": Opens for writing at the end of the file (appending) without removing the EOF marker before writing new data to the file; creates the file first if it doesnot exist.

FOPEN_MODEBINARY = 16

"b": Open in binary (untranslated) mode.

FOPEN_MODEPLUS = 8

"+": Opens for both reading and writing. (The file must exist.)

FOPEN_MODEREAD = 1

"r": Opens for reading. If the file does not exist or cannot be found, the call fails.

FOPEN_MODETEXT = 32

"t": Open in text (translated) mode.

FOPEN_MODEWRITE = 2

"w": Opens an empty file for writing. If the given file exists, its contents are destroyed.