Contents

write(_:)

Writes the specified data synchronously to the file handle.

Declaration

func write(_ data: Data)

Parameters

  • data:

    The data to write to the file handle.

Discussion

If the handle represents a file, writing takes place at the file pointer’s current position. After it writes the data, the method advances the file pointer by the number of bytes written.

See Also

Related Documentation

Deprecated