kekekerush 0 Newbie Poster

Hey all,

I have to program a method that is called makelist, and I'm not sure how to program it. If I already have a list in my external file, how would I grab the list from there? I was thinking of infile.get(char) and keep going until it reaches the null char, and arrange the chars into a string, and put the string into the list?

So my way of thinking would be:

1. get characters from file
2. until '\n'
3. make chars into string(?)
4. insert string into list

Would this be a correct way of thinking or am I totally off the mark?

Thanks in advance.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.