Aug-23-2017, 06:48 AM
Hi
I have created a class student and a constructor where there are 4 arguments ie, name and 3 subjects.
I have created an object with name and marks of 3 subjects. It worked fine and gave desired output.
Now i want to read students name and marks from a txt file. I open and read txt file but i am unable to break the line to name and marks. Can anyone solve this problem
my txt file info is
first,last,60,40,80
...................
I have created a class student and a constructor where there are 4 arguments ie, name and 3 subjects.
I have created an object with name and marks of 3 subjects. It worked fine and gave desired output.
Now i want to read students name and marks from a txt file. I open and read txt file but i am unable to break the line to name and marks. Can anyone solve this problem
my txt file info is
first,last,60,40,80
...................