I'm trying to save the values โโof a specific column from a csv file. I want to take the largest number from this column and keep it in a variable. I'm trying this code, but the problem is that there is a comma in some fields and I can't get the correct values.
var columnQuery =
from line in strs
let elements = line.Split(',')
select Convert.ToInt32(elements[12]);
var results = columnQuery.ToList();
int max = results.Max();