List<string> TempList = new List<string>(); using (StreamReader r = new StreamReader(Filename)) { string line; while ((line = r.ReadLine()) != null) { TempList.Add(line); } } string delim = "|" string[] ControlParts; foreach ( string s in TempList) { ControlParts = s.Split(delim); _MeditechConnections.Add(ControlParts[0]); }
string delim = "|"
string delim = '|'
char
string
Split
ControlParts = s.Split(delim.ToCharArray());
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)