这仅适用于 Windows 程序,因此可移植代码不是问题。
我只需要:
bool DoesFileExist( LPWSTR lpszFilename )
{
// ...
}
最佳答案
根据尊者 Raymond Chen 的说法,您应该 use GetFileAttributes if you're superstitious .
关于c - 如何检查 Windows 程序的 C++ 文件是否存在?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2112252/