I have a simple Comma Separated Value file that stores 3 lines. Each line in the CSV (from left to right) abides by the following format:
Question,Answer A,Answer B,Answer C,Answer D,Correct Answer,_____,______
Where the Question is a simple Maths Question (i.e. how many sides does a rhombus have?), the four possible answers (from A-D) are just numeric values (such as is the way the questions are designed), the Correct Answer is the letter representing the correct answer to the question, i.e. D.
I need to be able to read each of the 3 lines of the CSV into separate one dimensional arrays. This should be done at the start of run time.
You will notice that there are two spaces after "Correct Answer"; the first (from left to right) is where I need the game player's answer to be written to the file. Answers submitted will range from A-D, in all situations.
The next empty space is where the game writes whether the player got that question correct. This will work by comparing the character (from A-D) submitted by the player with the Correct Answer (from A-D), stored within the array. The space should then have CORRECT or INCORRECT written into it as a result.
This is a BIG ask, and I would much appreciate ANY feedback on how I should go about doing this, seeing as I have never done this kind of thing before!

