Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python create file if doesnt exist

import os 

if not os.path.exists("PATH"):
    with open("PATH", "w"):
        pass
 
PREVIOUS NEXT
Tagged: #python #create #file #doesnt #exist
ADD COMMENT
Topic
Name
7+3 =