|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Read .txt file off internet
im making a program that reads a url from a text file on the internet then loads that url in the default web browser, i know the script for reading off a local computer but it doesnt work for the internet, help please
![]() |
|
#2
|
||||
|
||||
|
__________________
Baby soft, because its made from real babies. |
|
#3
|
|||
|
|||
|
just spent about 1-2 hours trying to sort it but its real confusing do i have to create a class for webclient and for stream? ive tryed copying the examples of the msdn site but they dont even work so i cant exactly edit them
|
|
#4
|
||||
|
||||
|
Code:
Dim wc As New System.Net.WebClient
Dim URL As String = wc.DownloadString("http://mysite.com/url.txt")
Process.Start(URL)
__________________
Primary Forums: .Net Development, MS-SQL, C Programming VB.Net: It's not your father's Visual Basic. [Moving to ASP.Net] | [.Net Dos and Don't for VB6 Programmers] |
|
#5
|
|||
|
|||
|
thanks with web start its answered the question about how to open in wbe broswer aswell
![]() just one small question, why cant i do say Code:
Process.Start(URL) edit... i just realised it needs to be not in a sub for it to be shared for subs ... ty again.. |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > .Net Development > Read .txt file off internet |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|