#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main()
{
int i, n, res, k;
char appoggio[20];
FILE *fp=fopen("piatti.txt", "r");
char*** matrice=(char ***)malloc(100*sizeof(char**));
for (fscanf(fp, "%d", &n), i=0; res!=EOF; res=fscanf(fp, "%d ", &n), matrice[i]=(char **)malloc(n*sizeof(char*)), i++)
{
for (k=0; k<n; k++)
{
fscanf(fp, "%s", appoggio);
matrice[i][k]=(char *)malloc((strlen(appoggio)+1) * sizeof(char));
strcpy(matrice [i][k], appoggio);
}
}
printf("%s\n", matrice [0][0]);
return 0;
}