![]() |
#2
guojianxun2008-11-01 09:01
|
为什么我使用了_open函数,通过判断返回值知道确实存在文件没打开成功,为什么那个文件我在windows下看不到呢?句子大体这样的:
fileHandle= _open("c:/111.txt", O_RDONLY);
if (fileHandle != -1)
{
cout << "File opened successfully." << endl;
}
请简单给我提示下,难道c++的打开文件函数不能在windows下用?