FILES

 #include <stdio.h>

int main()
{
    FILE *ptr;
    int n;
    ptr=fopen("ab.txt","r");
fscanf(ptr,"%d",&n);
printf("the value of n is %d",n);
return 0;
}

Comments