oqueeh
.net
All topics
>
Python
Difference between "w" and "w+" flags in Python
“w” opens files for write-only access
“w+” opens a file for read and write access
Both create the file if it does not exist.
Both truncate the file to zero length upon opening.