private void button1_Click(object sender, EventArgs e) { CharacterNode node; string fileName; node = new CharacterNode(1, "test"); Console.WriteLine(node.Details()); fileName = makeURL(tbPageName.Text); fileName = string.Format(@"d:\temp\{0}.txt", fileName); for (int i = 1; i <= 5; i++) { webReq = new WebReq(string.Format("{0}{1}/page_{2}", sURL, tbPageName.Text, i), getPost.get, connect, false); webReq.doParse(fileName); } }