Hi there to apple community.
I am trying to download a csv file from a website to present the data in my app.but when I use the download task I don't know what to do with the response (it is a csv file)
what should I do with the response to get a parseable csv from this?
should I use another task?
the url is the download link of the file.
Thanks a lot for your help
I am trying to download a csv file from a website to present the data in my app.but when I use the download task I don't know what to do with the response (it is a csv file)
Code Block let task = URLSession.shared.downloadTask(with: URL(string: "https://example.csv")!) { (url, response, error) in if error == nil { } else { print(error?.localizedDescription) } } task.resume()
what should I do with the response to get a parseable csv from this?
should I use another task?
the url is the download link of the file.
Thanks a lot for your help