• Advertisement

Archived

This topic is now archived and is closed to further replies.

Save a linked list in file

This topic is 5454 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

What do I have to do in order to save a linked list in a file?

Share this post


Link to post
Share on other sites
Advertisement
Just save each node one after each other then you can load them back up later

while(not end of list)
save node
move to next node

while(not end of file)
load node

Share this post


Link to post
Share on other sites

  • Advertisement