xxxxxxxxxx
FILE *A; // declare the Files
if ((A = fopen("A.txt","r")) == NULL){
printf("Error! opening file");
exit(1);
}
int num;
fscanf(A,"%d", &num); // we scnaning from the file A Int and we storing the int in the num variable