I'm doing a project using linked lists and i am stuck on this bit of code..
here is what i have on a procedure to save the contents of a linked list to a text file.. it doesn't seem to work though.. can u tell me what i could do.
This is only a sample part cos the whole thing is too long..
This function is called at the end of the enter() which stores the info into the linked list..
I don't think any info is getting passed to save() but i can't spot why
/* global declaration */
struct address *start;
register int t;
struct address *info;
if ((fp = fopen("mlist.txt","wb"))
printf("\n File cannot be opened");
printf("\n Saving file");
info = start;
while (info != NULL)
info = info->next;