I made a file of records.....each record consists of one integer field......now i wanna retrieve the value from the integer field......how to do that ? i used fscanf function but it doesn't work......the other fields are string value..
while(fgets(code,6,handle)!=NULL)
{ fgets(name,22,handle);
fgets(position,22,handle);
fscanf("%d",&age); // this is the integer value
printf("%s ",code);
printf("%s ",name);
printf("%s ",position);
printf("%-3d\n",age);
}