Is it possible to write a method and declare something like

Node currentNode;

to "scan" through each nodes in the list, and saving to file. I guess I can use


to declare the necessary file stream variables.

Would really appreciate some ideas and tips on how to approach this problem.

What do you mean by "saving nodes"... do you want to save the nodes as in the internal representation of the list, or do you want some sort of text representation of each node?

That is, is this output for presentation, or is it saving the data to load into memory again?