Hi - I have a text file containing student names and their exam marks:
Andrew Brown, 45
Carol Whyte, 67
etc
I need to read them into two separate arrays, one for the name and one for the exam mark. I am okay with reading from and writing to sequential files, but I don't know how to split each line, to separate the name into one array and the exam mark into another array.
Thanks!
Andrew Brown, 45
Carol Whyte, 67
etc
I need to read them into two separate arrays, one for the name and one for the exam mark. I am okay with reading from and writing to sequential files, but I don't know how to split each line, to separate the name into one array and the exam mark into another array.
Thanks!