I have an array of student names i.e names(9) and student marks i.e marks(9) as double. I have a text file containing names and corresponding marks like this
john,30.5
Mary,40.1
Holli,50.9
I want to read the text file using StreamReader object and then extract each student name and mark and then store it in the names and marks array.
How can I do that?