Im reading csv files into a list. since each file contains many lines and time-consuming to read, I only need to check the first 100 lines for each file. How can I have Linq to only read first 100 lines and then continue to the next file?
For(i=0;i<10;i++)
line_list = (from line in File.ReadLines(files[i])
let field = line.Split(',')
where field[2] == "Apple" && !field[3].Contains("Banana")
select field).ToList();