Post

Replies

Boosts

Views

Activity

How Dowmload and parse an csv file in swift?
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) 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
1
0
2k
Feb ’21