I'm trying to write a program that reads multiple files and stores all the words in one array of strings. Here are some parts of the code:
This is the array that I'm supposed to put the words in:
I also dynamically allocate memory to this array and free it, so the issue is not that. For some reason, after the while loop, when I try to print out the array, it is empty, like nothing was written to it.
If you need any other parts of the code, let me know, I'll gladly post it.