Hi, I would like to know how to be able to read in an html file using java. right now, I am trying bufferedreader and filereader in java.io library. However, it seems like it will be hard to edit the text once the file is read. So, is there a more convenient way to read in an html file so that I can edit it
If you have control over creation of the HTML file, make it XHTML instead. This way you can use any XML DOM parser to read and write back. XHTML is normal HTML with every tag properly closed, with DOCTYPE declaration included etc.