Adds cell to a row when you mmap() then std::cout froma file
Opened this issue · 0 comments
Ben-Benevolent commented
I created a .csv file with the following content, as a test to see if the program works:
title_of_the_file,
theremin_players, ,10,20,30,40,50,60,70,80,
violin_players,80,70,60,50,40,30,20,10,
Upon using csv2, I found it to be very simple and intuitive. However, when I std::cout'ed the code
above, I found the numbers came out as:
, 10,20,30,40,50,60,70,80,
80,70,60,50,40,30,20,10,0,80,
csv2 added two extra numbers to the second line of numbers. Since I want to use this program to easily
input data sets into a program which then applies regression analysis to said data, this error is concerning.
Please let me know if the code already has a fix built in, of which I am not aware.