API Reference > Namespaces > Oda Namespace > Structs, Records, Enums > Oda::FileCreationDisposition Enumeration
Oda::FileCreationDisposition Enumeration
Syntax
C++
enum FileCreationDisposition { kCreateNew = 1, kCreateAlways = 2, kOpenExisting = 3, kOpenAlways = 4, kTruncateExisting = 5 };

RxSystemServices.h

Members 
Description 
kCreateNew = 1 
Creates a new file; fails if the specified file already exists. 
kCreateAlways = 2 
Creates a new file; overwrites any existing file. 
kOpenExisting = 3 
Opens the file; fails if the file does not exist. 
kOpenAlways = 4 
Opens the file; creates the file if it does not exist. 
kTruncateExisting = 5 
Truncates the file; fails if the file does not exist. The file must be open at least kFileWrite. 

This is record Oda::FileCreationDisposition.

Copyright © 2002–2020. Open Design Alliance. All rights reserved.