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

CurrentRecordIndex Does not Update if SkipEmptyLines is True and a row is empty #71

Open
gavdraper opened this issue Jun 12, 2019 · 0 comments

Comments

@gavdraper
Copy link

For example

If you have a CSV file with 10 lines and lines 3 and 4 are empty with SkipeEmptyLines == true when it reads record 5 it will have an index of 3.

I'm trying to write logic to ignore the last X records using RowCount-CurrentRecordIndex to determine this but it falls down when the counter is not incremented for blank rows.

I'm happy to look at a pull request if this is change you would accept into CsvReader?

@gavdraper gavdraper changed the title CurrentRecordIndex Does not Update Is SkipEmptyLines is True and a row is empty CurrentRecordIndex Does not Update if SkipEmptyLines is True and a row is empty Jun 12, 2019
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