I have to browse the content of the web page in streamreader like

world wide web.test.com




i acquired this:

System.IO.StreamReader StreamReader1 =

new System.IO.StreamReader("world wide web.test.com")

string test = StreamReader1.ReadToEnd()

however i i quickly understand this error code

Make an effort to access the technique unsuccessful: System.IO.StreamReader..ctor(System.String)

Consider using a WebClient, it's simpler and it's not necessary to be worried about streams and rivers:

using (var client = new WebClient())

world wide web.test.com")

    // TODO: make a move using the downloaded derive from the remote

    // site

If you wish to make use of the StreamReader, this is actually the code I'm using:

    const int Buffer_Size = 100 * 1024

        WebRequest request = CreateWebRequest(uri)

        WebResponse response = request.GetResponse()

        result = GetPageHtml(response)


    private string GetPageHtml(WebResponse response) readers = new StreamReader(responseStream)) readers.Read(buffer, index, 256)

              index += readByte


          while (readByte != )



        string result = new string(buffer)

        result = result.TrimEnd(new char[] )

        return result