init(contentsOf:options:)
Creates data by reading from the specified URL.
Declaration
init(contentsOf url: URL, options: Data.ReadingOptions = []) throwsParameters
- url:
The
URLto read. - options:
Options for the read operation. Default value is
[].