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

Optional Values #47

Closed
benjamin0 opened this issue Jul 10, 2017 · 3 comments
Closed

Optional Values #47

benjamin0 opened this issue Jul 10, 2017 · 3 comments

Comments

@benjamin0
Copy link

I have a .csv file with data that looks like the following:

a,b,c
1,2,3
1,,3
1,2,3

I'd like to know that there's no b value for the second line (rather than interpreting it as 0). Is it possible to do this?

@ben-strasser
Copy link
Owner

ben-strasser commented Jul 11, 2017 via email

@DonaldTrump88
Copy link

I would like to know what will happen in case of 'b' value is not present.

  1. Will the library throw error or issue just warning?
  2. Is there any option to enable or disable these behaviours?

@ben-strasser
Copy link
Owner

As stated in the top comment: The default is interpret an empty field as zero value. If you want something else you must read a char* and do the parsing yourself.

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

3 participants