change it to write each node to file. So for exampleCode:fwrite(&item,sizeof(item),1,in);
This writes each node on to file. The first parameter is the actual node which u need to write and the next sizeof the node which u wanted to write. And next the no of nodes which u need to write in the above case its just one cos, you are writing just on node. And the last is the File pointer.Code:fwrite(p,sizeof(item),1,in);
And dont forget to close the file.
ssharish

