I have a text file which contain following type item
wett45456,4556,45657,898 tyu5878,4566,7989,55565
now i have a windowform on that form
string[] lineOfContents = File.ReadAllLines("Myfile.txt"); foreach (var line in lineOfContents) { string[] tokens = line.Split(','); comboBox1.Items.Add(tokens[0]); }