0
How is it that opening a file in write mode and immediatly closing it will delete the files content?
Open "filename", write
2 odpowiedzi
+ 3
write means actually, overwrite.
If you want to make sure the original content is kept, use append mode
+ 2
The file contents are deleted