Read Csv using LINQ

前端 未结 9 2144
无人及你
无人及你 2020-12-01 04:55

I am having a csv file like this

A, 22, 23, 12
B, 32, 4, 33
C, 34, 3 ,33

I want to print the sum and average of each row and skip the first

9条回答
  •  無奈伤痛
    2020-12-01 05:23

    I just have discovered LinqToCsv library, it do all the parsing stuff and then you can query objects like collections and it supports deferred reading:

    http://www.codeproject.com/Articles/25133/LINQ-to-CSV-library

提交回复
热议问题