Reading data from a web server

  • Thread starter Thread starter kronecker
  • Start date Start date
K

kronecker

I want to set some switches in say HTML, write the data to a file and
then read this file from a vb.et program. What is the best approach? I
thought at first maybe an RSS feed would do then I thought this was an
overkill since the data was more or less just 4 strings of true or
false each!
What would be the best approach? An XML file local on the server maybe
or a text file? How to read it remotely from my computer?

Thanks

k.
 
There are many possibilities, to get files from a server to a client,
however from where are you accessing it.

If it is a WindowsForm or WindowsService then the webclient.download is
probably the most simple one.

If it is a Webpage then simple adding a link on your page does it.

Cor
 
I want to set some switches in say HTML, write the data to a file and
then read this file from a vb.et program. What is the best approach? I
thought at first maybe an RSS feed would do then I thought this was an
overkill since the data was more or less just 4 strings of true or
false each!
What would be the best approach? An XML file local on the server maybe
or a text file? How to read it remotely from my computer?

Thanks

k.

Hi,
Take a look at System.Net.WebClient class that provides download /
upload related methods and functions both. Also My Namespace is
another choice, My.Comptuer.Network provides UploadFile, DownloadFile
that are suitable for any for including text format.

Thanks,

Onur Güzel
 
What would be the best approach? An XML file local on the server maybe
or a text file? How to read it remotely from my computer?

In addition to the other replies:

'My.Computer.Network.DownloadFile'.
 
Back
Top