Given the code below:
var query = from line in ClientCount()
let aLine = line.Split(",")
where aLine.GetValue(1) != 0
select aLine;
To query a csv file, will aLine.GetValue(1) get the 1st line (after 0) in the .csv file, or 1st string, eg:
abc, def
And therefore get def? I want to get def, but then I also want to pick up, title2 above that in a file like so:
title, title2
abc, def
How can I do this?
BTW I know there is LINQ To CSV for this but I am doing this myself for the practise.
Thanks