Contents

FileDescriptor

An abstract handle to an input or output data resource, such as a file or a socket.

Declaration

@frozen struct FileDescriptor

Overview

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

Reading From a File

Changing a File’s Offset

Writing To A File

Closing a File

Instance Methods

Type Properties

Type Methods

See Also

Files