Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python export console output to file

sys.stdout = open("test.txt", "w")

print("Hello World")

sys.stdout.close()
# TEST.TXT:
# Hello World
Source by www.kite.com #
 
PREVIOUS NEXT
Tagged: #python #export #console #output #file
ADD COMMENT
Topic
Name
5+7 =