Skip to content

IOStream

Evan Swick edited this page Feb 16, 2016 · 2 revisions

IOStream is a general-use class that allows you to interface with Unix file descriptors.

Example:

var stdin = IOStream(fileDescriptor: STDIN_FILENO, canWrite: false)

IOStream.swift offers 3 default preconfigured IOStreams: stdin, stdout, and stderr.

Clone this wiki locally