Originally Posted by
Daved
If you want to display the contents of the file in the console window, you have to write code to output it to the console window. Opening a file in your program just means that the stream has the file ready for you to read from. You can use any of the many function available for reading from streams.
The one you probably want is getline. Try looking up the getline function and figure out how to read from a stream. Then try outputting the line you read. Once that works, you'll want to use a loop to read each line and output them all to the screen.
There are other methods, but I imagine you are trying to learn how to program and those other methods won't help you much in that regard.