After line 30, I tried to put the following line in order to have the (edited) file “printed”:
print(target.read()).
Unfortunately, I receive an error message saying that the file is not readable.
I understood this is due to the ‘w’ in line 12, in the open function.
Can somebody explain me more about this?