我需要从下面的Textfile中选择不同的行。跳过第一列并与其他列不同
TEXTFILE
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/>
OR
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()
感谢
我已经按原样缩进了样本行,但请您澄清间距?特别是:最后一个示例包含不在源代码中的间距。 –