Reading data from browser

HI Folks,

I am trying to read data from browser which is in this format, even in source i can see only the text string below. But i am getting error. can any one help me to read the data and write in text file.

C|21.5|48.3|-999.9|-999.9|-999.9|-999.9|21.4|49.3|-999.9|-999.9|-999.9|-999.9

This is my code sample.

'Create the HttpWebRequest object

Dim reqAs HttpWebRequest = WebRequest.Create("http://jaws/")

Try

'Get the data as an HttpWebResponse object

Dim respAs HttpWebResponse = req.GetResponse()

'Convert the data into a string (assumes that you are requesting text)

Dim srAsNew StreamReader(resp.GetResponseStream())

Dim resultsAsString = sr.ReadToEnd()

sr.Close()

html.Text = results

Catch wexAs WebException

Response.Write("<font color=red>SOMETHING WENT AWRY!<br />Status: " & wex.Status & "Message: " & wex.Message & "</font>")

EndTry

[1361 byte] By [JagjotSingh] at [2007-12-30]
# 1

I think you will find that there are different forums for this problem. This section is for XML

WoodyUK at 2007-10-9 > top of Msdn Tech,.NET Development,.NET Base Class Library...

.NET Development

Site Classified