Hi all,

How can I check to see if a file exists under the Windows OS? Something like:

if (!file_exists("c:\dir\file.ext"))
{do_something}
else
{do_something_else}

What if the path is a directory?

if (!file_exists("c:\dir"))
{do_something}
else
{do_something_else}

~Rick

Reply via email to