Instance Method

write(to:options:)

Writes the contents of the data buffer to a location.

Declaration

func write(to url: URL, options: Data.WritingOptions = []) throws

Parameters

url

The location to write the data into.

options

Options for writing the data. Default value is [].

See Also

Reading and Writing Data

typealias Data.ReadingOptions

Options to control the reading of data from a URL.

typealias Data.WritingOptions

Options to control the writing of data to a URL.