I have a bunch of names in a data file. One name, first and last, per line.
How can I open up the file, read them, and then print them to the screen?
Printable View
I have a bunch of names in a data file. One name, first and last, per line.
How can I open up the file, read them, and then print them to the screen?
What have you tried?
I'm kind of a newbie and I've been searching through my book and can't figure out how to do it.
Use ifstream. http://www.cprogramming.com/tutorial/lesson10.html