Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python write file

with open("file.txt", "w") as file:
  for line in ["hello", "world"]:
    file.write(line)
Source by www.pythonforbeginners.com #
 
PREVIOUS NEXT
Tagged: #python #write #file
ADD COMMENT
Topic
Name
8+7 =