How to replace different words in the file, in other words from another file?

For example in the file words.txt there are some words ,for example : #one,#two,#three. Is the file text.txt where there are words: one,two,three,four,five What are the ways of writing the code,so that such overwriting in a text file.txt:#one,#two,#three,four,five? Ie just replacing words from one file to another.
April 3rd 20 at 18:24
1 answer
April 3rd 20 at 18:26
Ways of writing code is generally not very much. You can write the code hands, you can dictate by voice. Part of the code can be generated automatically, but usually need to write some amount of code manually.

Find more questions by tags Java