Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Checking Availability of user inputted File name

FileName = raw_input("Please input a Valid File Name : ")
if os.path.isfile("C:/Users/Brads/Documents/" + FileName + ".txt"):
    print("File Exists")
else:
    print("File does not exist")
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Checking #Availability #user #inputted #File
ADD COMMENT
Topic
Name
2+1 =