write(_:)

Writes the contents of a string at the current file offset.

FileDescriptor.swift:304
@discardableResult func write(_ string: String) throws(Errno) -> Int

Parameters

string

REQUIRED The string being written.

Returns

The number of bytes that were written.