C++でファイルの存在確認

PathFileExists()

#include<Windows.h>
#include<iostream>
#include<Shlwapi.h>

#pragma comment(lib, "Shlwapi.lib")

int main(int argc, char* argv[])
{
    char path[] = "";
    if (PathFileExists(path))
    {
        std::cout << "file exists." << std::endl;
    }
    else
    {
        std::cout << "file doesn't exist." << std::endl;
    }
    return 0;
}