Jas1217
0
Q:

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")
0

New to Communities?

Join the community