help understanding inputing from file into an array

I am having trouble understaind the specific way to read from a file and putting th einformation into an array and continue reading info from there
problem:
TFTFTFTFTFTFTFTFTFTF
JJJJ4562FTFTFTFTFTFTTTFFTTFF
JJJk5156TTFFTTFFTTFFTTFFTTFF

^^ this is the text in the file
i have to put the first line into an array becuase it is the answer key... then compare it to every students answers and grade accordingly

so im thinkin i have to put the key into an array using a for loop
then im using a string type variable for the name part because i really only have to display them..so JJJJ 4562 would be a string

then create another array for each students ansewrs andsince i do not know how many students i would use a while loop for this

ive been looking around but i really cant understand the syntax of how after the answerkey is in the array, make it jummp to the next line and get the string and other array .
if i am unclear let me know
also...how would i differentitate between when the student id ends and test asnwers beigin
Last edited on
h
Topic archived. No new replies allowed.