FileDescriptor
An abstract handle to an input or output data resource, such as a file or a socket.
Declaration
@frozen struct FileDescriptorOverview
You are responsible for managing the lifetime and validity of FileDescriptor values, in the same way as you manage a raw C file handle.
Topics
Creating a File Descriptor
Opening a File
open(_:_:options:permissions:retryOnInterrupt:)open(_:_:options:permissions:retryOnInterrupt:)FileDescriptor.AccessModeFileDescriptor.OpenOptions
Reading From a File
Changing a File’s Offset
Writing To A File
write(_:retryOnInterrupt:)write(toAbsoluteOffset:_:retryOnInterrupt:)writeAll(_:)writeAll(toAbsoluteOffset:_:)