I want to read HTML file and based on the search text entered , i need to find that text in the HTML file.
Yes, i am trying to read the HTML file stored locally. First step i did is reading the HTML file. The program is below:
But exception occurs "java.io.FileNotFoundException". Please help me.
Joined: Mar 22, 2005
Is "d://Hello.htm" a valid file path, and does the code have the right to access it? A common cause for FileNotFoundException are missing access privileges.
I'm not sure what keeping the HTML in a JEditorPane adds to searching it, but be aware that that class only supports HTML 3.2, so many HTML features (including CSS) will not be rendered correctly or at all.