checking the existence of a fiel
Matthew Schinckel
matt at null.net
Wed Jul 12 01:28:16 EDT 2000
More information about the Python-list mailing list
Wed Jul 12 01:28:16 EDT 2000
- Previous message (by thread): [ANN] swallow.py: Unix GUI MUA
- Next message (by thread): checking the existence of a fiel
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Jul 11, I overheard Fernando RodrÃguez mutter: > How can I check if a file exists? O:-) try: fp = open(file,'r') # code to run if file exists. except IOError: print "File:",file,"Does not exist." -- Matthew Schinckel <matt at null.net> What I tell you three times is true.
- Previous message (by thread): [ANN] swallow.py: Unix GUI MUA
- Next message (by thread): checking the existence of a fiel
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list