public class URLReader { public static void main(String[] args) throws Exception { URL codemiles= new URL("http://www.codemiles.com/"); DataInputStream in = new DataInputStream( codemiles.openStream());
String inputLine;
while ((inputLine = in.readLine()) != null) System.out.println(inputLine);
in.close(); } }
_________________ M. S. Rakha, Ph.D. Queen's University Canada