Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

create a file in a specific directory

# create a text file for writing
with open(r'E:pynative
eportsprofit.txt', 'w') as fp:
    fp.write('This is first line')
    pass
Source by pynative.com #
 
PREVIOUS NEXT
Tagged: #create #file #specific #directory
ADD COMMENT
Topic
Name
4+4 =