
public class WebpageReader {
public static void main(String[] args) throws IOException {
String line = null, response;
URL url = new URL("http://www.google.co.in/");
HttpURLConnection conn = (HttpURLConnection) url.openConnection();
BufferedReader rd = new BufferedReader(new InputStreamReader(conn.getInputStream()));
while (rd.readLine() != null) {
line += rd.readLine();
}
System.out.println(line);
}
} I am getting output to this code as html tags....
But what i want is in a word document to the webpage(for which i don t have access to source code)
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.