Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python delete contents of file

open('file.txt', 'w').close()
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #delete #contents #file
ADD COMMENT
Topic
Name
5+1 =