I have a .txt file that contains HTML and variables from my program, e.g.
I'm using a while loop to read in the .txt file but Im not sure how to get it to replace the variables with the values - I thought it would do it automatically, but obviously not..