save linked list to .txt

How does one go about saving information in a linked list to a .txt file. I have a working program that can read a .txt file and make a list but I am having trouble saving any added nodes to the file.

any suggestions would be appreciated.

thanks
wouldnt you just do it the same way you would if your just outputting txt to a file?
or use a for loop? post code
Last edited on
I have a while loop that can go through and retrieve the list, but I can't find the right functions to then put the info in each node into the txt file. I'm using several classes and it would take some time to go through each to put the info in line by line.

is there a way to call my print function that shows the list and transfer that list into the txt?
Last edited on
how about saving that list into an array, then outputting the array to a txt file
the info in each node is a bit big for that. each node of the list contains names, address, usernames and purchases
Topic archived. No new replies allowed.