I need save each word of text file into array of strings
I have this code how to do for convert into dinamically
#include <stdio.h>
#include <conio.h>
#define MAX_CHARS 20
typedef char string[MAX_CHARS+1]; // leave one space for '\0'
main(){
int i;
string array[4];
FILE *data;
data = fopen("ard.txt","r");
for(i = 0; i < 4; i++)
{ fscanf(data, "%s", array[i]); } // no need for & with %s
printf("%s",array[3]);
getch();
}