|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
opentext( url address )Hello,
I need to read a line in a textfile which is published on a website address ( http://www.radiocontact.be/Live/onair2.txt ) so I can resolve the playlist of a radiostation. The problem is that the way I tried it doesn't work: variable = opentext("http://www.radiocontact.be/Live/onair2.txt") because it only works with file pathnames. Does anyone know how to solve this problem? Hi,
You need to get a response stream to read in the file. Dim sr As New IO.StreamReader(Net.WebRequest.Create("http://www.radiocontact.be/Live/onair2.txt ").GetResponse.GetResponseStream) Trace.WriteLine(sr.ReadToEnd) Ken ----------------------------------------- Show quoteHide quote "tommydnp" wrote: > Hello, > > I need to read a line in a textfile which is published on a website > address ( http://www.radiocontact.be/Live/onair2.txt ) so I can resolve > the playlist of a radiostation. > > The problem is that the way I tried it doesn't work: > > variable = opentext("http://www.radiocontact.be/Live/onair2.txt") > > because it only works with file pathnames. > > Does anyone know how to solve this problem? > "tommydnp" <nospam@nospam.com> schrieb: Check out the first listing at this page:> I need to read a line in a textfile which is published on a website > address ( http://www.radiocontact.be/Live/onair2.txt ) so I can resolve > the playlist of a radiostation. > > The problem is that the way I tried it doesn't work: > > variable = opentext("http://www.radiocontact.be/Live/onair2.txt") > > because it only works with file pathnames. <URL:http://dotnet.mvps.org/dotnet/code/net/#InternetLoadFile> -- M S Herfried K. Wagner M V P <URL:http://dotnet.mvps.org/> V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Why is this simple addition throwing an overflow exception?
calling math functions at run time Create Serial Number Good book for an absolute beginner on VB.net or 2005 with databases VS 2005 baffled at step 1 Problem saving txt box with enter key Can someone please translate this to VB.Net How to run and communicate a DOS program file in a VB.NET program? Opening...Closing Forms 'System.Management.ManagementClass' is not defined |
|||||||||||||||||||||||