How do u read any normal text file into a linked list? Lets say i wanted to read a file that contained a c program or just a bunch of words or numbers, what should the struct contain?
How do u read any normal text file into a linked list? Lets say i wanted to read a file that contained a c program or just a bunch of words or numbers, what should the struct contain?
I don't know if this is homework or not....but either way.....
Please don't ask people to do all your work for you, See the announcement on Homework at the top of the forum to see what is acceptable ro PM. Basically people are happy to help, but they're not going to do it all for you. Show us what you've got, show your code (using code tags), or where you're confused and someone will be happy to help you I'm sure. Feel free to PM me with any questions.
Though yout specific question on what the struct should contain is a good one, be careful....People won't help if they think they're doing it all for you.
Good Luck,
Kermi3
I wasnt asking people to do my code for me i was just asking for advice.
All i am inquiring about is that when u read a file that has certain known format u would have variables. For example
file:
jon 45 78
peter 34 79
then u would have name variables, and int variables in the linked list
But i just want to read any olf text file, regardless of the format that it is and i was wondering how i should go about this. I dont want all of the code for reading a file i just want to know what the link list should be made up of