Hi! Im a newbie here.... I got a problem with my program...My linked list is ok but everytime I export the data to the file, things don't work in a proper way..I will show my code...pls help me...thanks... labname[20]="lab445.txt"; Code: /****************FWRITE FUNCTION**********************/ void save_data(information *lab,char labname[]) { FILE *fp; int num; char temp[15]; strcpy(temp,labname); temp[6]='\0'; /* if(lab==NULL) { clrscr(); logo(); gotoxy(29,10);printf("%s has an Empty List",temp); gotoxy(27,14);printf("Press any key to continue.."); } */ if((fp=fopen(labname,"wt"))==NULL) { clrscr(); logo(); gotoxy(38,10);printf("Error!"); } else { if(lab==NULL) putc('\0',fp); else { num=0; while(lab!=NULL) { fwrite(lab,sizeof(information),1,fp); num++; lab=lab->next; } clrscr(); printf("There are %d copied from the list.",num); getch(); clrscr(); logo(); for(num=0;numnext; temp->next=*lab; *lab=temp; x++; } } fclose(fp); clrscr(); printf("There are %d files copied from the file.",x); getch(); } }