---
title: create
framework: system
role: symbol
role_heading: Type Property
path: system/filedescriptor/openoptions/create
---

# create

Indicates that opening the file creates the file if it doesn’t exist.

## Declaration

```swift
static var create: FileDescriptor.OpenOptions { get }
```

## Mentioned in

Adopting Swift File Options

## Discussion

Discussion The corresponding C constant is O_CREAT.

## See Also

### Specifying Options

- [append](system/filedescriptor/openoptions/append.md)
- [closeOnExec](system/filedescriptor/openoptions/closeonexec.md)
- [eventOnly](system/filedescriptor/openoptions/eventonly.md)
- [exclusiveCreate](system/filedescriptor/openoptions/exclusivecreate.md)
- [exclusiveLock](system/filedescriptor/openoptions/exclusivelock.md)
- [noFollow](system/filedescriptor/openoptions/nofollow.md)
- [nonBlocking](system/filedescriptor/openoptions/nonblocking.md)
- [sharedLock](system/filedescriptor/openoptions/sharedlock.md)
- [symlink](system/filedescriptor/openoptions/symlink.md)
- [truncate](system/filedescriptor/openoptions/truncate.md)
