简体   繁体   中英

How to get column names of CSV files saved in documents directory?

I am importing CSV files saved in documents directory. There are multiple CSV files stored in documents directory.

I am getting the list of all CSV files. I want a selected CSV file to get imported.

When I select any CSV file, I want to get Column names of that CSV File.

How to Fetch only cloumn names of that CSV files?

How can I do this?

Check this out http://www.cocoawithlove.com/2009/11/writing-parser-using-nsscanner-csv.html

There is also a sample program in the end. Its a lot of work, but it will help

Parsing CSV File will take your efforts.

Though hoping this links can help you.

  1. Link 1
  2. Link 2
  3. Link 3

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM