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.
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?