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
 
PREVIOUS NEXT
Tagged: #python #write #line #file
ADD COMMENT
Topic
Name
5+3 =