Answers for "Checking Availability of user inputted File name"

0

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")
Posted by: Guest on October-02-2020

Code answers related to "Checking Availability of user inputted File name"

Python Answers by Framework

Browse Popular Code Answers by Language