/ Published in: Python
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
try: file = open("testfile", 'r') print "File exists." file.close() except IOError: print "File does not exist."