I tried but I am too rusty.
I need a program to :
1. Grab a line by line list of phrases from a text file.
2. Grab another file that contains html code. Just one file.
3. Swap out a text string with another text string (from the Phrase list text file) for the NEW file.
4. For Each phrase in the phrase list file I need a file written which is the NEW file with the swapped string from the phrase list and have the file named the same as the initial phrase (but replace any whitespace with a dash).
For example
If the phrase list is:
Flameless Candles
Classic Cars
Apricot Jelly
We should end up with
Flameless-Candles.htm
Classic-Cars.htm
Apricot-Jelly.htm
Where string ABC123
has been replaced with Flameless Candles in the Flameless-Candles.htm file
and ABC123 has been replaced with Classic Cars in the Classic-Cars.htm file etc.