Reading data from an URL with URLSession
<p>I'm using URLSession to retrieve data from an url</p>

<pre><code>func scheduleURLSession() {
    let backgroundConfigObject = URLSessionConfiguration.background(withIdentifier: "myIdentifier...")
    let backgroundSession = URLSession(configuration: backgroundConfigObject, delegate: self, delegateQueue: nil)
    let retrieveTask = backgroundSession.downloadTask(with: URL(string: "https://api.wedsblog.net/v2/index.php?bitcoin&amp;simple")!)
    retrieveTask.resume()
}
</code></pre>

<p>When download finished</p>

<pre><code>func urlSession(_ session: URLSession, downloadTask: URLSessionDownloadTask, didFinishDownloadingTo location: URL) { }
</code></pre>

<p>Will be called. How can I read the content of downloaded file? Is ".downloadTask" the right function or shall I use another one?</p>