Created
May 30, 2009 04:13
-
-
Save nandub/120371 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.BufferedReader; | |
import java.io.InputStreamReader; | |
import java.net.URL; | |
public class Main { | |
public static void main(String[] args) { | |
try { | |
URL my_url = new URL("http://www.viralpatel.net/blogs/"); | |
BufferedReader br = new BufferedReader(new InputStreamReader(my_url.openStream())); | |
String strTemp = ""; | |
while(null != (strTemp = br.readLine())){ | |
System.out.println(strTemp); | |
} | |
} catch (Exception ex) { | |
ex.printStackTrace(); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment