DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
how to write to a file in python without deleting all content
file = open("FILE_NAME.txt", "w+") # opens the file in both read and write mode
PREVIOUS
NEXT
Tagged:
#write
#file
#python
#deleting
#content
ADD COMMENT
Topic
COMMENT
Name
3+9 =
Submit