Contents

init(contentsOf:options:)

Initialize a Data with the contents of a URL.

Declaration

init(contentsOf url: URL, options: Data.ReadingOptions = []) throws

Parameters

  • url:

    The URL to read.

  • options:

    Options for the read operation. Default value is [].

Discussion