Exists()

File::Exists(const String&) method

Determines if the specified path references an existing file.

static bool System::IO::File::Exists(const String &path)

Arguments

ParameterTypeDescription
pathconst String&The path to test

Return Value

True if the path references an existing file, otherwise - false

See Also