Look at this example.
FILE*p=fopen("file.txt "," r ");
int x,y,z;
fscanf(p," %d%d%d ",& ampx & amp; y & amp; z);
printf("Read:\nx=%d,y=%d,z=%d\n ",x,y,z);
fclose(p);