I'm using Python 3.8
I want to load a list of no integer value that is in a file ex: ["a", "b", "c"], no matter the kind of the file. Then I want to add to this list an element ex "d" so the final list would be ["a", "b", "c", "d"].
Next, this list will be written in the same file replacing what was inside. In this way a will have a clean file with the updated list.
This process will be repeated many times.
I thought it was a simple process and maybe it is, but I can't find a way.