Leon Breedt wrote:
> what's the fastest way to check for the existence of a file/directory?
Use stat().
OTOH, whether a file exists is usually irrelevant. It's usually more
meaningful to determine whether the current process can read or write
the file (the file may exist, but the permissions may not allow the
process to access the file).
You can determine whether the process can access the file using
access().
Also, you need to have execute permission on all of the parent
directories in order to be able to discover anything about a file
(including whether it exists).
--
Glynn Clements <[EMAIL PROTECTED]>