FileCreation enum
What happens when the file exists, or does not.
- Use
import ThinkMeta.ConcurrentTasks.Platform.FileOptions;- Namespace
ThinkMeta::ConcurrentTasks::Platform- Platforms
- Windows, Linux
Syntax
enum class FileCreation : std::uint8_tValues
OpenExisting
Open an existing file; fail if there is none (OPEN_EXISTING).
Syntax
OpenExistingCreateAlways
Create the file, or empty an existing one (CREATE_ALWAYS, O_CREAT | O_TRUNC).
Syntax
CreateAlwaysCreateNew
Create the file; fail if it exists (CREATE_NEW, O_CREAT | O_EXCL).
Syntax
CreateNewOpenAlways
Open the file, creating it if there is none (OPEN_ALWAYS, O_CREAT).
Syntax
OpenAlwaysTruncateExisting
Open an existing file and empty it (TRUNCATE_EXISTING, O_TRUNC).
Syntax
TruncateExistingGenerated from ThinkMeta.ConcurrentTasks.API @ da816bc (2026-11-06).