Win a copy of Design for the Mind this week in the Design forum!
    Bookmark Topic Watch Topic
  • New Topic

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

 
bob spencer
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Report post to moderator
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
Posts: 3451
  • Mark post as helpful
  • send pies
  • Report post to moderator
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.
 
Don't get me started about those stupid light bulbs.
    Bookmark Topic Watch Topic
  • New Topic