the code I have now does but memory is wasted because it is static
I like to read a txt and every word stored in a string array of dynamic
Code:
#include <stdio.h>
#include <conio.h>
#define MAX_CHARS 20
typedef char string[MAX_CHARS+1]; // leave one space for '\0'
main(){
int i;