VC编译器下c语言没有办法打开TXT文件。代码如下:#include
#include
void main()
{ FILE *fp;
if((fp=fopen("C:\Users\Administrator\Desktop\ad.txt","r"))==NULL)
{
printf("cannot open the file!");
exit(0);
}
else
printf("ok");
fclose(fp);
}
VC编译器下c语言没有办法打开TXT文件。代码如下:#include
#include
void main()
{ FILE *fp;
if((fp=fopen("C:\Users\Administrator\Desktop\ad.txt","r"))==NULL)
{
printf("cannot open the file!");
exit(0);
}
else
printf("ok");
fclose(fp);
}