protected void Page_Load(object sender, EventArgs e) { _write = new Write(fileName); List<string> childs = _write.PrintChild(); string temp=""; foreach (string name in childs) temp = temp + name + "\n"; txtChilds.Text = temp; }