File Management
I have data stored in a text file as followed Course Name(String) Course ID(String) Number of Students(Int) Day,Time,Location(This is accepted as one string using a multi-dimensional array) The user should be able to Input the course ID and everything associated with the course ID should be printed Example of data in the text file: Computer Science CS1234 4 Monday 8:30-9:30 Auditorium English A EA1234 5 Monday 10:30-11:30 Room 1 Tuesday 12:30-1:30 Room 2 Using fgets i can print a line from the file how it is displayed in the file (Everything on one line), which is what I did, but I would like the data to printed in a specific format instead of all on one line, How I want it to print: Course Name:(Course Name) Course ID: (Course ID) Number of Students: (Number of students) Weekly classes: (Day,Time,Location) Any help is appreciated. Thank you in advance. (If any code is needed please let me know and I will post the code)