Search
 
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
Name
8+8 =