How can i read a text file like this one:

```
Acqua Naturale 200
Coca Cola 100
Bibite 300

```

and store in a string `Acqua naturale` and `Coca Cola` and their int value in a int variable, using `sscanf()`.

The example code is this:

```
struct Test
{
 char name[16];
 int id;
};

 char * buffer = malloc(sizeof(struct Test));

 while(fgets(buffer, sizeof(struct Test), filep))
    {
      if(sscanf(buffer, "%s %d", p.name, &p.id) == 2)
      {
        //do something with data

      }
    }

```