Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Creating and writing to a new file

f = open("demofile2.txt", "w") # Creating and writing to a new file
f.write("demofile2 file created, with this content in!")
f.close()
Source by tryhackme.com #
 
PREVIOUS NEXT
Tagged: #Creating #writing #file
ADD COMMENT
Topic
Name
6+9 =