try { ArrayList AnimalList; String path = Resources.Animals; string[] Animals = null; Animals = File.ReadAllLines(path); AnimalList = new ArrayList(Animals); listBox1.Items.Add(AnimalList); } catch (Exception ex) { MessageBox.Show("Files could not be found:\n" + ex.Message); this.Close(); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)