65,186
社区成员




char *name = "C:\\Users\\administrator\\Desktop\\temp";
FILE *f = NULL;
try
{
f = fopen(name,"r");
if (f==NULL)
{
cout<<"not file"<<endl;
}
else
{
cout<<"is file"<<endl;
fclose(f);
}
}
catch (CException* e)
{
cout<<"exception"<<endl;
}