My text file is formated like that:

```
my.txt
Red
Green
Blue
Yellow

```

I'm tring to get words like that:

```
typedef char * string;
main(){
   int i;
   string array[4];

   FILE *my;
   my = fopen("my.txt","r");
   for(i = 0; i < 4; i++)
         fscanf(data, "%s", &array[i]);
   fclose(my);
}

```

When I try to print the array there is an error. What's wrong with my code and how can I fix it?