In my application I have a sign up form. When they submit the form I would like it to take the values from these these textboxes and merge them into certian parts of a text document. So the code needs to read the textfile, insert the data in the right spots and then save as a new file. I have been reading on how to use the .split('symbol') so maybe that would work.
For example: user123123.txt, My name is {namebox}. I am {agebox} years old.
namebox = Amy
agebox = 21
I really have no idea how to do this. I have tried using the string.format() function but can’t figure out how to have it read the text file and insert the values where I need them.
Something like: