private void comboBox1_SelectedIndexChanged(object sender, EventArgs e) { string path=comboBox1.SelectedItem.ToString()+".txt"; string[] myfile; if (System.IO.File.Exists(path)) { myfile=System.IO.File.ReadAllLines(path); } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)