im trying to scan (perhaps using fgets) 6 different strings from the same line in a file that is accessed by the program. i used the following struct to hold the 6 different strings:
struct _entry {
char subject[10];
char prof_name[10];
char prof_surname[10];
int period;
int credits;
int pass_rate;
};
struct _entry entry[MAX_LINES];
if someone could help me on what i can do to scan 1 line from a file, and it will be 3 strings and 3 digits that i can assign to each of the struct values.