#include #include int CountWords (FILE *p) { int countWords=0; char c=fgetc(p); while (c!=EOF) { if (c=='\n') countWords++; c=fgetc(p); } countWords++; /*EOF means another word has ended*/ return countWords; } int GetWordLength (FILE *p) { int length=0; char c=fgetc(p); while (c!='\n' || c!=EOF) { length++; c=fgetc(p); } length++; /*the charectar '\0' takes a place in the word's array*/ return length; } void GetWord (FILE *fp,char p[],int arrayLength) { int i; char extraChar; for (i=0;i