954,536 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

How to count the number of HTML files with a given content

150 html files are in a folder on a windows machine.Among them,content of some files (not the file names)contain the sentence "Hello World??".
How to count no of such files using java program

creativehacker
Light Poster
29 posts since Jul 2007
Reputation Points: 10
Solved Threads: 0
 

Read each of them like you would any other text file and use Regular Expressions to parse them.

Ezzaral
Posting Genius
Moderator
15,986 posts since May 2007
Reputation Points: 3,250
Solved Threads: 847
 

1, 2, 3, 4, ..., 148, 149, 150

jwenting
duckman
Team Colleague
8,392 posts since Nov 2004
Reputation Points: 1,662
Solved Threads: 337
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You