what's the best arrangement when i intend to write my array of structs to a file?
my array of structs is like this....
because later, ill write the informations in the array of structs to a FILE for saving information...Code:typedef struct student_profile{ long long int stud_num; char name[50]; char bday[50]; char course[50]; } STUDENT; STUDENT array[20];
others say like writing like this in the FILE...
student number0 name0 bday0 course0
student number1 name1 bday1 course1
etc....
where each student account will occupy one line, and infos will be separated by tabs...
is this the best arrangement?
thanks!