D Documentation  
exists
int exists(char[] name)

This function checks, if name does exist. It can be used for files or directories.

Returns zero, if file was not found, otherwise not zero.

Example:
if (exists(args[0])!=0) {
  writefln("I do exist!");
} else {
  writefln("I do not exist :-(");
}


See also:
isfile, isdir, read, getSize
Created using PHP docwiki written by Markus Dangl. Best viewed with Mozilla Firefox.