Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds cell to a row when you mmap() then std::cout froma file #50

Open
Ben-Benevolent opened this issue Jul 20, 2024 · 0 comments
Open

Comments

@Ben-Benevolent
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant