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

Skip lines at beginning of csv #103

Open
mellery opened this issue May 28, 2020 · 2 comments
Open

Skip lines at beginning of csv #103

mellery opened this issue May 28, 2020 · 2 comments

Comments

@mellery
Copy link

mellery commented May 28, 2020

I have a csv file with about 20 rows of setup information, followed by a header, and then the data.
Is there a way for CSVReader to read this file ignoring the first 20 rows? I'm able to parse a file without this setup information.

@ben-strasser
Copy link
Owner

ben-strasser commented Aug 30, 2020

You can call next_line 20 times.

@lperez5
Copy link

lperez5 commented Jun 22, 2022

next_line isn't skipping the row for me @ben-strasser

my csv looks like this

word1, word2, word3, word4
1, 2, 3, 4
5, 6, 7, 8

I would like to skip the first row, then read rows 2 and 3 into a vector

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