Horje
Checking Availability of user inputted File name Code Example
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")




Python

Related
pss signatures python Code Example pss signatures python Code Example
Highlighting the shortest path in a Networkx graph Code Example Highlighting the shortest path in a Networkx graph Code Example
iterate over meta tag python Code Example iterate over meta tag python Code Example
how to create a sub project in django Code Example how to create a sub project in django Code Example
what is dii Code Example what is dii Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
6