Parsing Tab delimited text files

后端 未结 5 723
长发绾君心
长发绾君心 2020-12-10 19:07

I have a tab delimited file with some columns and rows for example: some rows might not have value for some columns. What we know is that the \"order\" doe

5条回答
  •  Happy的楠姐
    2020-12-10 20:02

    var list = from row in System.IO.File.ReadLines("file.txt")
               let arr = row.Split('\t')
               select new Tuple(arr[2], arr[12], arr[45]);
    

提交回复
热议问题