parse CSV, TSV, ... etc into transposed list of list
parse_vertical()
: parse the CSV file and access it row by row. Each row is returned as a list of strings.parse()
: parse the CSV file and access it column by column.
make
make install
make test
If you already installed it, you can run the example example.cpp
. Else, you can run the make.cpp
. You can also pass the csv parameter to the executable parser.out
as a parameter.
Parsing: test-q.csv
Horizonal mode:
"height" 180 172 192
----------
"weight" 60 70 90
----------
"name" AAA BBB CCC
----------
Vertical mode:
"height" "weight" "name"
----------
180 60 AAA
----------
172 70 BBB
----------
192 90 CCC
----------