I'm getting a file content from my website:
Dim client As WebClient = New WebClient()
Dim text = client.DownloadString("http://myurl.com/raw.php")
The text is following:
Line
Another Line
Test1
Test2
Now, how can I run a loop through the text variable, to have a text from each line ?
I have tried this:
Dim str As String() = text.Split(":::")
For Each line As String In str
MsgBox(line)
Next
And I was finishing each line with the :::, but this method seems ugly and I hope there are better solutions?
textis not aDimbut a variable.Dimis the statement used to declare local variables and class members.