I had this code:
String[] lineElements; . . . try { using (StreamReader sr = new StreamReader(\"TestFile.txt\")) {
string[] thisArray = myString.Split('/');// List myList = new List(); //make a new string list myList.AddRange(thisArray);
Use AddRange to pass string[] and get a string list.
AddRange
string[]