i think u problem is here
if (tvLinks.Nodes[I].Text == IconLocation.Host.ToString())
{
tvLinks.Nodes[I].Nodes.Add(srInput.ReadLine());
break;
}
else if (I == tvLinks.Nodes.Count - 1)
{
tvLinks.Nodes.Add(IconLocation.Host).Nodes.Add(srInput.ReadLine());
break;
}
You most asure that u are parsing well the info in ur text file en every
tvLinks.Nodes[I].Text
a debug is recommended :P