Sep-01-2020, 08:16 PM
As bowlofred says, there is no such thing as "insert mode". If you want to "insert" something in a file you need to rebuild the file. This is not a "Python" thing. This is a "how all files work" thing.
As for your other questions, they are best answered by doing some experiments. Open an existing file using "w" and close it immediately. What happened to the file size?
As for your other questions, they are best answered by doing some experiments. Open an existing file using "w" and close it immediately. What happened to the file size?