> > Now my question: Is there a simple way to detect an existing file? > import os os.path.exists(foo) check out the documentation for the os.path module -- lots of goodies there. Oh, and just like C, python has stat() and you can always use that.