I would like to know how to read information from an Excel file (saved as .csv) for then printing it into another file, using C++.
The input file has the data separated into columns. The first line of each column is the label of the column. Such as this:
|Column1|Column2|Column3|Column4|Column5|Column6
|char1.1|char2.1| | | |char6.1
|char1.2|char2.2|int3.2 |char4.2|bool5.2|char6.2
|char1.3|char2.3|int3.3 |char4.3|bool5.3|char6.3
|char1.4|char2.4| | | |char6.4
|char1.5|char2.5| | | |char6.5
|char1.6|char2.6|int3.6 |char4.6|bool5.6|char6.6
So from this table, I would like to extract the columns 3, 4 and 5 (only when there is information, so lines 2,3 and 6) and print the information into another csv file, such as this:
|Column3|Column4|Column5|
|int3.2 |char4.2|bool5.2|
|int3.3 |char4.3|bool5.3|
|int3.6 |char4.6|bool5.6|