Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python create file in current directory

import os
current_dir = os.getcwd()
file = current_dir + filename
if not os.path.exists(file):
	with open(file, 'w'): pass
 
PREVIOUS NEXT
Tagged: #python #create #file #current #directory
ADD COMMENT
Topic
Name
9+4 =