I want to read a string from a file and then put each word into a linked list node. Would I need to use getline() for this or is there another way????
e.g THIS IS A SAMPLE
node 1 --> THIS
node 1 --> IS
node 1 --> A
node 1 --> SAMPLE
Cheers
I want to read a string from a file and then put each word into a linked list node. Would I need to use getline() for this or is there another way????
e.g THIS IS A SAMPLE
node 1 --> THIS
node 1 --> IS
node 1 --> A
node 1 --> SAMPLE
Cheers