I have a text file called template.txt and an XML file called datafile.xml.
Example content of template.txt
"There was a man called $$$placeholder1$$$"
Example content of datafile.xml
<placeholder1>Joe Bloggs<placeholder1 />
Basically what i need to achieve is a console application which when executed, replaces the placeholders in the template.txt file with the relating name from the XML file.
Any help would be greatly appreciated
(so far i can search the template.txt file for the text value "$$$placeholder1$$$", along with its character position within the file.)
Example content of template.txt
"There was a man called $$$placeholder1$$$"
Example content of datafile.xml
<placeholder1>Joe Bloggs<placeholder1 />
Basically what i need to achieve is a console application which when executed, replaces the placeholders in the template.txt file with the relating name from the XML file.
Any help would be greatly appreciated
(so far i can search the template.txt file for the text value "$$$placeholder1$$$", along with its character position within the file.)