reading text from url and load it in array
hello guys, help me.
I want to open a text file from a url (example: http://domain.com/mytext.txt)
and then load it into array. (Separated by new line)
I appreciate full code for this or write for me easily. I'm new for vb syntax but I need to develop an application immediately and I'm experienced with other technologies.
I have another question. I'm thinking to develop a simple chat application. I'm thinking to write/read all chat messages in xml. is the idea logical for chat application development?
Thank you
Re: reading text from url and load it in array
vb Code:
Dim wc As New Net.WebClient
wc.DownloadFile("http://www.domain.com/mytext.txt", "temp.txt")
Dim lines() As String = IO.File.ReadAllLines("temp.txt")
Re: reading text from url and load it in array
@paul does it work in vb6? vb6 finds error last two lines
Re: reading text from url and load it in array
this is the vb.net forum. try asking in the classic vb forum