RobinTibbs
Member
- Joined
- Nov 8, 2006
- Messages
- 18
- Programming Experience
- Beginner
I'm fairly proficient at java but i am making a small app for my Warcraft guild and figured i'd start to learn vb.net. anyhow. What I want to do first is retrieve the contents of a text file from a URL. Below is an example of it in Java and hopefully you can understand
VB.NET:
import java.net.*;
import java.io.*;
public class BigWigsUpdater {
public static void main(final String[] pArgs) throws Exception {
URL bwlatest = new URL("http://wowace.com/files/BigWigs/latest.txt");
BufferedReader in = new BufferedReader(new InputStreamReader(
bwlatest.openStream()));
String inputLine;
while((inputLine = in.readLine()) != null)
System.out.println(inputLine);
in.close();
}
}