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

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!