In this task, the job is to verify that a file called “input.txt” and the directory called “docs” exist. This should be done twice: once for the current working directory and once for a file and a directory in the filesystem root.
void testfile(std::string name)
std::cout << name << " is a directory.\n";
std::cout << name << " is a non-directory file.\n";
std::cout << name << " does not exist.\n";
Content is available under GNU Free Documentation License 1.2