I'm trying to open a file called dictonary.txt and copy its contents to a string array. But I forget how to do it.
Here's what I have so far:
int main(int argc, char** argv)
{
char dict[999][15];
FILE *fp;
fp = fopen("dictionary.txt", "r");
while(feof (fp))
{
}
}
Can someone help me with this?
EDIT: There are 999 words in the file and all of them have 15 characters or less.