how can i chop the third line of the output...thanks
data read from file as below:
1231252 Peter(new line)
1548587 Mary(new line)
output as below:
1231252 Peter
1548587 Mary
1248587 Mary
Code:while (!feof(f))
{ int student_id;
char student_name[200];
fscanf(f,"%d", &student_id);
fscanf(f,"%s", student_name);
printf("id: %d\tname: %s\n",student_id,student_name);
}