Return to Snippet

Revision: 13018
at April 5, 2009 12:23 by fnurl


Initial Code
try:
    file = open("testfile", 'r')
    print "File exists."
    file.close()
except IOError:
    print "File does not exist."

Initial URL

                                

Initial Description

                                

Initial Title
Check if file exists

Initial Tags

                                

Initial Language
Python