struct word { char wordname[200]; };
struct word word1[200];
int i = 0;
FILE *fp = NULL;
fp = fopen("word.txt", "r");
if (fp != NULL)
{
while (fgets(word1[i].wordname, sizeof(word1), fp))
{
i++;
}
fclose(fp);
}
return 0;
FOUND: [fine] has [4] definitions:
- {adjective} of high quality.
- {adjective} (of a thread, filament, or person's hair) thin.
- {noun} very small particles found in mining, milling, etc.
- {adverb} in a satisfactory or pleasing manner; very well.