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 objectDim 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 WebExceptionResponse.Write("<font color=red>SOMETHING WENT AWRY!<br />Status: " & wex.Status & "Message: " & wex.Message & "</font>")
EndTry
