为什么 _findfirst
使用 ..\*.txt
搜索模式返回 -1
struct _finddata_t c_file;
hFile = _findfirst("..\\*.txt", &c_file);
但是可以正确处理 ..\*
吗?
最佳答案
_findfirst
在传递 "..\\*.txt"
时可以正常工作。它返回 -1
表明工作目录上方的目录中没有文本文件。
关于c - _findfirst 失败,路径为 ..,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16585143/