I trying to write a piece of C# code that allows me to read variables stored in either a txt or xml file and then run a loop for each file. For instance I have 2 txt or xml files in a folder and I have a foreach statement that will run for each of those files that will use the variables stored in the file for example the file could look like this:
var1 = hello
var2 = world
and then code would just simpy write out the code
var1 + var2
Any help would be greatly appreciated.