Reading from a URL
import java.io.*;
import java.net.URL;
public class URLReader {
public static void main(String args[]) {
URL myURL;
InputStreamReader myURLContent;
int intValue;
try {
myURL = new URL("http://thanassis.com");
myURLContent = new InputStreamReader(
myURL.openStream());
Previous slide
Next slide
Back to first slide
View graphic version