I'm trying to fill up an array with characters from a file and then pass it back to the main function so I can sort of juggle all the information I'll be gathering from different files between functions.
At first I was trying to make the function return an array to the main function, but I couldn't get valid information that way. So I used pointers to point at arrays, but I couldn't get that to work. Then I was trying to use pointer arrays using dynamic memory and I still can't get it to work. They end up spitting out junk data. So I tried cheating and making the pointers as global variables and so I've humbled myself to ask for help here
Oh, and in case you need to know; the "answers.txt" file is set up so the first line has the number of questions that were on the test, and the subsequent lines are the actual answers (A-E).