I know how to use seek()
to move where Python will read a file. Is there any way to do this when in append mode when editing a file? (I have tried using r+ and a+ for read and write, but r+ overwrites the character in the specified position and a+ still seems to insert text at the end of the file)
file1.py:
filetwo = open("file2.txt", "a")
filetwo.seek(13)
filetwo.write("5")
filetwo.close()
file2.txt:
1, 2, 3, 4, 6, 7, 8, 9, 10