Hello,
so my question is this..lets say you have a file
like this.
Computer Science
01 //course number
30 //number of students that can enroll
4 //number of students currently enrolled
Math
02 //course number
20 //number of students that can enroll
12 //number of students currently enrolled
And i have a program that enrolls students in a course..
after a student enrolls, i need to update the file.
so if i enroll in computer science,
the number of students would increase to 5 and look like this
Computer Science
01
30
5
...how do i do that?