if (-e 'database.db') { #database exists } [download]
In reply to Re: Check whether a file exists by ercparker in thread Check whether a file exists by Anonymous Monk