how do u insert a new node using functions

guys im having problem with my C++ assignment. hoping you can help me. how do insert a new node containing a new information using a function, to add into a text file already containing information. thanks.
That's a very general question. Give us more details and show us the code you've written so far...
Well, be simple here:

Nodes are often used when talking about self referential structures, like
1
2
3
4
struct Node{
char data;
struct Node *next;
};


So when you talk about a text file, it seems like "node" wasn't the word you were planning to use.

Perhaps an edit would clear things up.
Topic archived. No new replies allowed.