我正在使用以下代码在我的程序中打开一个文件。
CString cstrOut; CString cstrFileName; cstrFileName.Format( "FinalSect%1d.txt", nSect+1 ); std::ofstream echofile; echofile.open(cstrFileName);
这工作正常,但是当我打开没有管理员权限的文件时,它无法打开。请帮我。
我正在使用以下代码在我的程序中打开一个文件。
CString cstrOut; CString cstrFileName; cstrFileName.Format( "FinalSect%1d.txt", nSect+1 ); std::ofstream echofile; echofile.open(cstrFileName);
这工作正常,但是当我打开没有管理员权限的文件时,它无法打开。请帮我。