Is there a problem trying to read an html page using a URL to access the page?
Type: Posts; User: Norm
Is there a problem trying to read an html page using a URL to access the page?
I meant html pages where I said files.
Does the program read the html pages that you are having problems with? It would need to read the contents of the html pages so it could scan them.
What are the problems you are having?
Please edit your post and wrap your code with code tags:
<YOUR CODE HERE>
to get highlighting and preserve formatting.
Do you have some code you are having problems with?
The indexOf() method will only search the String that it is used with. The program will have to read the data into the String.
int indx = theString.indexOf("keyword");
Post the code that shows the problem.
If the contents of the html file was in a String, and you have a list of the keywords, there are methods in the String class you could use to search the String with.
There can be problems with...
Can you explain what you are trying to do?