WebClient

  • Thread starter Thread starter Peter
  • Start date Start date
P

Peter

I have the following code:

Dim client As New WebClient

Dim aStream As Stream

Dim aReader As StreamReader



aStream = client.OpenRead(http://yaddayadda)

aReader = New StreamReader(aStream, True)

strPage = strPage & aReader.ReadToEnd



the url I am reading contains this data

<td width="40" bgcolor="#000000"><font color="#FFF000">&nbsp;7½</font></td>

However, when using the code above the "half" character does not exist in
the string?

Help!



please reply to petersmith#@#ns.sympatico.ca (remove # signs)



Thanks in advance!
 
Hi Peter,

Did you already once try this code
Dim client As New WebClient
strPage = client.downloadfile(http:/yaddayadda)

And please do not ask to respond to your own adres, a newsgroup is to share
knowledge.

I hope this helps?

Cor
 
I hadn't but now I have, the file itself has the "half" character inside,
but when I use a streamreader to read it into a string variable, the string
variable doesn't have the character.

Thanks for the suggestion and any others ou may have.

PS: I should have clarified on the address, was hoping to get a reply both
to it and on newsgroups as my news server doesn't have very long retention
 
bumping this message to see if anyone else has any similar issues with
Stream and StreamReader?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top