cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Limit/Restrict the CSV parser output instead of scanning entire file

Surendar
Contributor

Is there is any possible ways to limit the CSV parsing output?

Say for example, I have 30 + GB of CSV file, from this file I need to get only first two lines of data
i.e. The first line is header and second line is data. I hope skip lines wontโ€™t work for this approach.

Can any one suggest instead of parsing/scanning the entire 30 + GB of file how to get first two lines from the file with best optimized approach?

Thanks in advance!

1 REPLY 1

sayrahma
New Contributor

Hi Surendar,

did you get any thing on this topic.