title: How to seek a string variable (an html files source code)
body: <p>How can I seek this sb string variable to get those variables:IMKB's value: 64882,72
  how can I get it please show the seek idea</p>
  
  <pre><code>using System;
  using System.Collections.Generic;
  using System.Linq;
  using System.Web;
  using System.Web.UI;
  using System.Web.UI.WebControls;
  using System.Text;
  using System.Net;
  using System.IO;
  
  public partial class Run2 : System.Web.UI.Page
  {
      protected void Page_Load(object sender, EventArgs e)
      {
  
  
    // used to build entire input
    StringBuilder sb  = new StringBuilder();
  
    // used on each read operation
    byte[]        buf = new byte[8192];
  
    // prepare the web page we will be asking for
    HttpWebRequest  request  = (HttpWebRequest)
     WebRequest.Create("http://www.yapikredi.com.tr/tr-TR/yatirimci_kosesi/main.aspx");
  
  
          //http://www.imkb.gov.tr/Home.aspx
  
    // execute the request
    HttpWebResponse response = (HttpWebResponse)
     request.GetResponse();
  
    // we will read data via the response stream
    Stream resStream = response.GetResponseStream();
  
    string tempString = null;
    int    count      = 0;
  
    do
    {
     // fill the buffer with data
     count = resStream.Read(buf, 0, buf.Length);
  
     // make sure we read some data
     if (count != 0)
     {
      // translate from bytes to ASCII text
      tempString = Encoding.ASCII.GetString(buf, 0, count);
  
      // continue building the string
      sb.Append(tempString);
     }
    }
    while (count &gt; 0); // any more data to read?
  
    // print out page source
    //Console.WriteLine(sb.ToString());
          Response.Write(sb.ToString());
   }
  
  }
  </code></pre>