Advertisement
Guest User

Untitled

a guest
Feb 2nd, 2013
38
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.40 KB | None | 0 0
  1. import java.io.*;
  2. import java.net.*;
  3.  
  4. public class Koen {
  5.     public static void main(String[] args){
  6.         try{
  7.             URL myUrl = new URL("http://www.hackthissite.org/");
  8.             BufferedReader br = new BufferedReader(new InputStreamReader(myUrl.openStream()));
  9.             String temp;
  10.             while((temp = br.readLine()) != null)
  11.                 System.out.println(temp);
  12.         }
  13.         catch (Exception e){
  14.             e.printStackTrace();
  15.         }
  16.     }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement