Using linq to parse file [closed]
- by Emaan Abdul majeed
i am working parsing textfile using LINQ but got struc on it,its going outof range exception
string[] lines = File.ReadAllLines(input);
var t1 = lines
.Where(l => !l.StartsWith("#"))
.Select(l => l.Split(' '))
.Select(items => String.Format("{0}{1}{2}",
…