How to use csvpp
How to use CSVPP
Inside of csvpp.h there are 3 different objects: * RowReader * RowWriter * rowiterator Each of these objects are located in the namespace csvpp.
Note - if you want to use fields you should have one stream statement before looping through the data For example:
fileistream >> tmp; //this populates the fields while(!fileistream.eof()) fileistream >> tmp;
Otherwise you will end up trying to access an empty row.
Example 1, using a string:
Example 2, using a file: