while(fgets(buff,sizeof(buff),fp)!=NULL) // read a single line from the file till i get EOF
{
if(sscanf(buff,"%s %f %f",food,&num)==2) // getting the name and the number from the ...