-
Notifications
You must be signed in to change notification settings - Fork 194
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How do I get the data from a .csv file I import? #39
Comments
@ASCI-Red What problems are happened? Did above code cause to crash your app? If you want to know how to use, it is better to read README and test codes like here. |
The app does not crash, but I am trying to access the CSV file using CSV(name: "CSVName"). It isn't executing but just goes right to the catch statement |
I'm having exactly the same issue. Just straight to the catch statement. Spoke to soon. Gotta use the test syntax. Change your statement to:
|
I think we need a nice Example project - will look at adding this for the next point release |
For those on Swift 3: let csvURL = Bundle(for: ViewController.self).url(forResource: "your_csv_file_name", withExtension: "csv")!
let csv = try CSV(url: csvURL)``` |
* remove unused Variant type * disambiguate init(name:) to mean resource name, not file paths Fixes swiftcsv#39
I need to have an application that can read in the values from a .csv file that I import into the project. Right now, the do statement appears to not work
The text was updated successfully, but these errors were encountered: