I got this far on saving it to a file:
void savetofile(Node *parts)
{
char filenamea[10],filenameb[20]={"./"};
printf("Enter name of file to create: ");
scanf("%s",filenamea);
strcat(filenameb,filenamea);
strcat(filenameb,".dat");
filenameb[strlen(filenameb)]='\0';
FILE * thefile=fopen(filenameb,"wt");
fprintf(thefile,Node &parts);
fclose(thefile);
}
However the trouble im having is in the fprintf line. i want to pass it the struct of information but not sure how. i have parts pointing to the struct.
and i am using visual C++
thanks again