Reading a file from a URL

I'm wondering what the basic steps would be for a Java application on my computer to be able to read a text file from the web given only the URL of the file.
[172 byte] By [joseph_mueller] at [2007-9-26 4:20:39]
# 1
Are you trying to read a .txt file that exists on a web server or are you trying to read the HTML code from a URL?
CommodoreKarl at 2007-6-29 17:24:03 > top of Java-index,Archived Forums,Java Programming...
# 2
You will use the classes java.net.URL, java.net.URLConnection for that. There is a very nice explanation in the java tutorial. You can find it here: http://web2.java.sun.com/docs/books/tutorial/networking/urls/readingURL.html
vijayreddy at 2007-6-29 17:24:03 > top of Java-index,Archived Forums,Java Programming...
# 3
Thank you.
joseph_mueller at 2007-6-29 17:24:03 > top of Java-index,Archived Forums,Java Programming...