File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes I/O and Streams and the fly likes How to read html file? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » I/O and Streams
Bookmark "How to read html file?" Watch "How to read html file?" New topic

How to read html file?

shippu devaraju

Joined: Feb 26, 2002
Posts: 11
Hi Friends,
I want to read a html file (which has links to plenty of .gif and .jpeg ) through my java file,and send that html file by e-mail using Java mail.
So here I am in little bit confuse in reading HTML file.How i shoud read HTML file either using Byte streams or charecter streams.
I am thankful to you if any of u can give solution to my problem
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15302

This program get's an HTML file and saves it to disk. It may help you a little.

GenRocket - Experts at Building Test Data
I agree. Here's the link:
subject: How to read html file?
It's not a secret anymore!