if (-e "some_file") { # do your thing } [download]
In reply to Re: Opening a File If It Exists by The Mad Hatter in thread Opening a File If It Exists by Neuroactive