i got a code something like this
scanf("%c",&s->name);
and i want to input string ..
but i change the %c to %s it error when running
and
i want to strore all inside the stulist.name and others into text file by one line
(fprintf(in"%c",stulist );
the command above just store all the char into text file but no newline....
but i dun want to write one line by one line as below
FILE *in;
in=fopen("sample.txt","a+");
fprintf(in,"%c",stulist.name);
then how ?..............