GeeCON Prague 2014*
The moose likes Java in General and the fly likes HELP! reading words from a file and writing them to  another file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Java in General
Reply locked New topic
Author

HELP! reading words from a file and writing them to another file

bob spencer
Greenhorn

Joined: Apr 10, 2003
Posts: 5
Someone please help me.
I need to write a java program that takes the contents of a html file (ignores the tags) and copies the individual words into a separate master file with the name of the html file that it came from by each word. When i repeat this with another file, it shud put those words into the same mater file, but no overwrite the previous data i.e.
test.html
< H1 > This is a Heading < H1 >
masterfile.txt
This test.html
is test.heml
a test.html
heading test.html
Michael Morris
Ranch Hand

Joined: Jan 30, 2002
Posts: 3451
Hi bob,
Welcome to JavaRanch. Please do not cross post. Choose a single forum to post your questions from now on. Since you're new around here I won't have a Sherrif come and toss you out of my bar

Locking this. Refer to this thread for responses.


Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius - and a lot of courage - to move in the opposite direction. - Ernst F. Schumacher
 
GeeCON Prague 2014
 
subject: HELP! reading words from a file and writing them to another file