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?

What have you tried sofar? You need to show us some code of things you have tried.

Could you give me the email of your teacher/proffessor, so I can email him/her the solution? In that way you can continue with whatever you where doing and don't have to bother any further.

commented: Awesome! +12
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.