joby

joby

  • NA
  • 6
  • 0

how this code get executed,explanation please

Sep 30 2009 9:53 AM

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)