I am writing a text file where a certain part is repeating, therefore I am using For loop to generate the same part for n number of times. I would like to know what is the easiest way if one wants to change tiny information between the iterations.
for example: This is what I want to write in the first iteration
One way could be to have the same information for n number of times and then used search and replace function. I think this would be quite time consuming and prone to errors as will have to use search and replace function for n number of times.