leixiangwu / csv-parser-cplusplus

Automatically exported from code.google.com/p/csv-parser-cplusplus
GNU General Public License v3.0
0 stars 0 forks source link

file_parser.set_skip_lines( ) don't work. #5

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
The command 'file_parser.set_skip_lines(2)' is not doing anything for me.

What steps will reproduce the problem?
I have tried it 'file_parser.set_skip_lines(1)', 
'file_parser.set_skip_lines(2)', 'file_parser.set_skip_lines(2)' and so on, but 
no reaction. file_parser start's always with the first line.

What is the expected output? What do you see instead?
With 'file_parser.set_skip_lines(2)' I like to see line 2, but it shows me line 
1.

What version of the product are you using? On what operating system?
I tried it with version 1.0.0 incl. the latest one from SVN-download.

Please provide any additional information below.
It's a nice library, but why it looks like the project is not under active 
development anymore?

Original issue reported on code.google.com by gboel...@gmail.com on 24 Jan 2012 at 5:32

GoogleCodeExporter commented 8 years ago
Do you call the method before initialization? I use the method in my project 
and it works. The logic should go like this:

csv_parser parser;
parser.set_skip_lines( ... );
parser.init( ... );

Original comment by josi...@gmail.com on 29 Jan 2012 at 7:55