Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python write a line to a file

f=open('output.txt', 'w')
print("Hello world", file=f)
f.close
Source by www.kite.com #
 
PREVIOUS NEXT
Tagged: #python #write #line #file
ADD COMMENT
Topic
Name
3+6 =