为什么我的打开不了文件的??
int _tmain(int argc, _TCHAR* argv[]){
int data[105];
FILE *pf;
pf = fopen("es.txt","r");
if ( pf == NULL)
{
printf("Can not find the file!");
}
//pf = fopen("c:\2.txt","r");
for (int i = 0; i < 100 ; ++i )
{
fscanf(pf,"%d",data[i]);
}
for (int i = 0; i < 100 ; ++i)
{
printf("%d\t",data[i]);
}
fclose(pf);
return 0;
}