Based on the code below:
var query = from line in ClientCount() let aLine = line.Split(",") where aLine.GetValue(1) != 0 select aLine;
To request the csv file, aLine.GetValue (1) will receive the 1st line (after 0) in the .csv file or the 1st line, for example:
abc, def
And so get def? I want to get def, but then I also want to raise title2 above that in the file, for example:
title, title2
abc, def
How can i do this?
By the way, I know there is LINQ To CSV for this, but I myself do it for practice.
thanks
source share