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.

RE: Reading data from a web server by FamilyTreeMike

FamilyTreeMike
Thu May 08 21:17:01 CDT 2008

Is something using System.Net.WebClient.DownloadFile() sufficient?

"kronecker@yahoo.co.uk" wrote:

> 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.
>

Re: Reading data from a web server by kronecker

kronecker
Thu May 08 22:15:56 CDT 2008

On May 9, 2:17 pm, Family Tree Mike
<FamilyTreeM...@discussions.microsoft.com> wrote:
> Is something using System.Net.WebClient.DownloadFile() sufficient?
>
> "kronec...@yahoo.co.uk" wrote:
> > 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.

Sounds promising. So the file could be a text file on the server ie
test_remote.txt say from a url

http://test.com/test_remote.txt

how to get this to a local file myfile_local.txt ?

K.

Re: Reading data from a web server by Cor

Cor
Fri May 09 02:47:22 CDT 2008

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

<kronecker@yahoo.co.uk> schreef in bericht
news:1ff2cfba-62dd-4965-9eb4-071ee714b4d7@w8g2000prd.googlegroups.com...
> On May 9, 2:17 pm, Family Tree Mike
> <FamilyTreeM...@discussions.microsoft.com> wrote:
>> Is something using System.Net.WebClient.DownloadFile() sufficient?
>>
>> "kronec...@yahoo.co.uk" wrote:
>> > 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.
>
> Sounds promising. So the file could be a text file on the server ie
> test_remote.txt say from a url
>
> http://test.com/test_remote.txt
>
> how to get this to a local file myfile_local.txt ?
>
> K.


Re: Reading data from a web server by kimiraikkonen

kimiraikkonen
Fri May 09 03:02:48 CDT 2008

On May 9, 1:51 am, kronec...@yahoo.co.uk wrote:
> 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=FCzel

Re: Reading data from a web server by FamilyTreeMike

FamilyTreeMike
Fri May 09 07:25:00 CDT 2008

This should do it:

Dim wc As New System.Net.WebClient
Try
wc.DownloadFile("http://test.com/test_remote.txt", "c:\myfile_local.txt")
Catch ex As Exception
Console.Out.WriteLine("an error occurred retrieving data...")
End Try


"kronecker@yahoo.co.uk" wrote:

> On May 9, 2:17 pm, Family Tree Mike
> <FamilyTreeM...@discussions.microsoft.com> wrote:
> > Is something using System.Net.WebClient.DownloadFile() sufficient?
> >
> > "kronec...@yahoo.co.uk" wrote:
> > > 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.
>
> Sounds promising. So the file could be a text file on the server ie
> test_remote.txt say from a url
>
> http://test.com/test_remote.txt
>
> how to get this to a local file myfile_local.txt ?
>
> K.
>

Re: Reading data from a web server by Herfried

Herfried
Sat May 10 12:24:47 CDT 2008

<kronecker@yahoo.co.uk> schrieb:
> 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'.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Re: Reading data from a web server by Cor

Cor
Sun May 11 01:35:05 CDT 2008


> In addition to the other replies:
>
> 'My.Computer.Network.DownloadFile'.
>
In addition to this message: for versions later than 2003

:-)

Cor