Reading HTML pages from a Java application
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Gisele_Floriano
Posted On:   Tuesday, May 18, 2004 12:07 PM

Hi there! How can I do a Java application that reads an HTML page on the web and saves it as text on a file (eg. result.txt)???? I hope you can help me! Thanks!

Re: Reading HTML pages from a Java application

Posted By:   Sean_Owen  
Posted On:   Tuesday, May 18, 2004 12:13 PM

Look at the javadoc for java.net.HttpURLConnection. This class can help you retrieve the contents of a URL via HTTP, and then you can do what you like with it -- like save it to a file.
About | Sitemap | Contact