DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
Print to the text file using inline file argument
# Appends the print statement into a log.txt print("Welcome to ItsMyCode", file=open('log.txt','a'))
Source by itsmycode.com #
PREVIOUS
NEXT
Tagged:
#Print
#text
#file
#inline
#file
#argument
ADD COMMENT
Topic
COMMENT
Name
8+8 =
Submit