Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python create file if not exists

import os

if not os.path.exists(path):
    with open(path, 'w'): 
 
PREVIOUS NEXT
Tagged: #python #create #file #exists
ADD COMMENT
Topic
Name
9+3 =