Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

pythonwrite to file

file = open("directory/sample.txt", "w")

file.write(“Hello World”) 

file.close()
 
Source by www.pythonforbeginners.com #
 
PREVIOUS NEXT
Tagged: #pythonwrite #file
ADD COMMENT
Topic
Name
9+8 =