Code:
string url = TextBox2.Text;
WebClient wc = new WebClient();
System.Uri URl = new System.Uri(url);
wc.DownloadFile(URl, "C:\\" + TextBox1.Text + ".html");
string c = wc.DownloadString(URl).ToString();
System.Text.ASCIIEncoding myencode = new System.Text.ASCIIEncoding();
byte[] bytes = myencode.GetBytes(c);
MemoryStream ms = new MemoryStream(bytes);
SqlConnection con = new SqlConnection("Data Source=SANKALPA4\\SQL05;Initial Catalog=VIJAY;Integrated Security=True");
SqlCommand cmd = new SqlCommand("insert into v values(@byte,@name)", con);
cmd.Parameters.Add("@byte", SqlDbType.Binary).Value = bytes;
cmd.Parameters.Add("@name", SqlDbType.VarChar).Value = TextBox1.Text;
con.Open();
cmd.ExecuteNonQuery();
con.Close();
c=Regex.Replace(c, @"<.*?>", " ");
c = Regex.Replace(c, @"[^\w,\.@-]", " ");
c = Regex.Replace(c, @"[0-9]"," ");
c = Regex.Replace(c, @"[a-z][A-Z]\d"," ");
c.ToLower();
c.Split(' ');
string[] str = {"google","gmail","telugu","kannada","to","the" };
Comment