FileStream pearCSV, roundCSV; StreamReader sr; bool dateset; // load the pear prices into pear matrix try { pearCSV = new FileStream("pear.csv", FileMode.Open); } catch (IOException ex) { MessageBox.Show("round.csv missing!\nCannot continue..."); Application.Exit(); } sr = new StreamReader(pearCSV); dateset = false; strLine = sr.ReadLine(); while (strLine != null) {