I'm trying to read a text file I created that has the answers for a True/False test consisting of 20 questions as well as student IDs and their answers for the test. I'm trying to output their student ID, their answers, their score, and their grade. I'm banding my head against the wall here because I feel everything looks right but when I run the program I don't get any output or "File not Found." I'm not sure if I have the text file located in the correct place of if my code is wrong. I have the text file located in my <project name>/Debug folder and have added it to my project under the <Source File> tab and set the Content to "Yes".
IMO, it's not any easier either way, however using a std::string will be safer. The only real differences between the array and a string is that a string knows it's size and it will grow to accommodate the data. You can iterate over a string exactly the same as you can the array.