1
Answer

how this code get executed,explanation please

Ask a question
joby

joby

15y
2.5k
1

HttpWebRequest request = (HttpWebRequest)WebRequest.Create(seed);
seed =
null;
HttpWebResponse response = (HttpWebResponse)request.GetResponse();
Stream stream = response.GetResponseStream();

StreamReader reader = new StreamReader(stream);
str = reader.ReadToEnd();
currloc = 0;
int i=0;
do
{
link = FindURL(str,
ref currloc);
MessageBox.Show(link);
WebClient wc = new WebClient();
wc.Proxy =
null;
#region

#endregion

wc.DownloadFile(link,i+
".html");
if (link != null)
{
seed =
string.Copy(link);

}
i++;
}
while (link.Length > 0);
}
while (seed != null);
}
catch(Exception ex)
{
MessageBox.Show(ex.Message);
}
}

Answers (1)