StreamReader sr = new StreamReader(somefile);while(line = sr.ReadLine() != null){ TreeNode tn = new TreeNode(); tn.text = line; MessageBox.Show(line); // Test to see if it reaches here and what the node before adding. treeView1.Nodes[0].Nodes[0].Nodes.Add(tn);}