I had this code:
String[] lineElements; . . . try { using (StreamReader sr = new StreamReader(\"TestFile.txt\")) {
Just u can use with using System.Linq;
using System.Linq;
List stringList = line.Split(',') // this is array .ToList(); // this is a list which you can loop in all split string