A simple python script to read lines from one txt file, update the content and write the result to another file.
You will need a minimum version of 3.6 installed to run the code. Download the latest version from the Python website:
You can use any IDE you fancy. I used Visual Studio Code with the Python extension
This documentation from Microsoft will get you set up with Visual Studio Code for Python development
The actual formatting of the message is done using string interpolation. You can read more about this in the following articles.
- https://realpython.com/python-f-strings/#f-strings-a-new-and-improved-way-to-format-strings-in-python
- https://www.python.org/dev/peps/pep-0498/
Information on how to open, create and overwrite files