Opens the file for writing only.
static var writeOnly: AccessMode { get }
s7SwiftIO14FileDescriptorV10AccessModeV9writeOnlyAEvpZ
2UKGX
import SwiftIO
The SwiftIO library allows you to access and control the hardware in an easy way.
struct AccessMode
The desired read and write access for a newly opened file.
struct FileDescriptor
The FileDescriptor struct is used to perform low-level file operations.
init(rawValue: UInt8)
static var readOnly: AccessMode { get }
Opens the file for reading only.
static var readWrite: AccessMode { get }
Opens the file for reading and writing.
var rawValue: UInt8