scanf("%s", file);
n = XXXXXXXXX(words, file);
printf("XXXXXXXXXXXX %d words loaded\n\n", n);
XX{
printf("****** MENU ******\n");
printf("1. XXX word\n");
printf("2. Dump all XXXXX\n");
printf("3. XXXX\n");
printf("Your choice: ");
XXXXX("%d", &XXXXXX);
switch(choice){
XXXX 1:
XXXXXX("Enter word: ");
scanf("%s", XXXXX[n]);
n++;
XXXXX;
case X:
saveToFile(words, n, XXXX);
saveToFile(XXXXX, n, file);
XXXX(X);
}
}while(XXXXXX!=3);
XXX XXXXXXXXX(char XXXXX[][XXX], XXXX XXXX[]){
FILE *fp;
XX = XXXXX("words.XXX", "r");
int i=X;
if(fp==NULL){
XXXXXX("Unable XX XXXX file\n");
XXXX{
while(!feof(XX)){
fscanf(XX, "%s", XXXXX[i]);
i++;
XXXXXX(XX);
return --i;
XXXX saveToFile(char words[][XXX], int n, char XXXX[]){
fp = XXXXX(XXXX, "w");
if(fp==XXXX){
printf("XXXXXX to XXXX XXXX\n");
return;
int i;
for(i=0; i&XX;n; i++){
XXXXXXX(XX, "%s\n", XXXXX[i]);
XXXXXX("XXXXXXXXXXXX %d write XXXX file\n\n", n);
XXXXXX(fp);