This is the format of my csv file.44401001 CA3101 CA3102 CA3103 EA3101 EA3102 null 7.39 Michael Dinesh Nisha Shruthi Abdul. It has login id, courses 1 to 6. if selected course is 4 the remaining columns will be null, cgpa, name 1 to 4, 2 empty columns and name5 and 6. I want to read this and store it in structure. if the no.of courses is less than 6, i should ask the user to add course and store it in courses array, and dispay the final details.
I tried scanning the file and it worked, but the count part is not working
1