Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/psibi/csv-parser
A CSV Parser in C++ without any bells and whistles
https://github.com/psibi/csv-parser
Last synced: 23 days ago
JSON representation
A CSV Parser in C++ without any bells and whistles
- Host: GitHub
- URL: https://github.com/psibi/csv-parser
- Owner: psibi
- License: other
- Created: 2012-09-07T01:25:06.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2016-06-27T16:59:25.000Z (over 8 years ago)
- Last Synced: 2024-10-12T00:01:22.418Z (about 1 month ago)
- Language: C++
- Size: 222 KB
- Stars: 24
- Watchers: 5
- Forks: 9
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: COPYING
Awesome Lists containing this project
README
CSV-Parser in C++
------------------
A CSV Parser in C++ without any bells and whistles.Usage:
-------
//Create object of csv_parser and pass the filename as the argument.
csv_parser csv("demo.txt");//For getting values according to row number and column number. Remember it starts from (1,1) and not (0,0)
string value = csv.get_value(3,4);//For getting a particular row in the CSV file
string line = csv.get_line(3);//For getting number of fields in a particular row.
int total_fields = csv.fields(csv.get_line(3));For demo, see the code demo.cpp under examples folder.
License:
---------
GNU General Public License v3 (GPLv3)Bug Report:
------------
Issue it here: https://github.com/psibi/csv-parser/issues