I cant figure out howto split items from my genericList to two seperate parts with delimiter option?
List<string> fileLines = File.ReadAllLines(fileName).Skip(4).ToList();
foreach (var item in fileLines)
{
values = item.Split(' ');
sList.Add(values[3].Substring(2).Trim());
}
My sList looks like this:
10.5 5.5
7.2 2.5
-0.1 3.0
-1.1 3.3
and so on ………. totaly 8760 rows in my List.
What I want to do is to split each row from the List to two seperate parts so I can count the min, max and average on thoose values.
(each value is meant to represent the temperature, so double)
Any help would be appreciated !!! Thanx
So why don’t you use this one