How can I read a file.txt in a list/forward_list

Need this for exam !
I don't think that there was a request to actually write code. More like the OP needs to know features of certain constructs. To acquire that knowledge, the OP has to read. Either what we write or what someone else has written.

Lets go for option 2 and point to:
http://www.cplusplus.com/doc/tutorial/files/
http://www.cplusplus.com/reference/list/list/
http://www.cplusplus.com/reference/forward_list/forward_list/
Topic archived. No new replies allowed.