init(contentsOf:options:)
Initialize a Data with the contents of a URL.
Declaration
init(contentsOf url: URL, options: Data.ReadingOptions = []) throwsParameters
- url:
The
URLto read. - options:
Options for the read operation. Default value is
[].