以下のテキストファイル表示から個別の行を選択する必要があります。
テキストファイル
123| one| two| three <br/>
124| one| two| four <br/>
125| one |two| three <br/>
出力は次のようになります
123| one| two| three <br/>
124| one| two| four <br/>
また
124| one| two| four <br/>
125| one |two| three <br/>
私はこのコードを使用してこの問題を解決しています
var readfile = File.ReadAllLines(" text file location ");
var spiltfile = (from f in readfile
let line = f.Split('|')
let y = line.Skip(1)
select (from str in y
select str).FirstOrDefault()).Distinct()
ありがとう