Trouble reading and displaying from txt file.

Hello,
I'm having difficulties with reading from a text file and displaying it in the console. I've looked at multiple examples but just do not understand what I'm supposed to do/ what I'm doing wrong. All help will be greatly appreciated. Also if anyone can offer advice on how to only take in specific data from a txt file that has a large amount of data I would be very grateful. The following is my main code if you need any other data, or parameters for what I'm doing please let me know.

So what you did here is that you declared in_stream to be an input stream (a stream can be seen as a set of characters that travels to OR from a file), which means that in_stream should ONLY be used for input operations. The same rule applies for out_stream, which you declared to be an output stream, so you can ONLY use it for output operations. And thus, following statement is wrong:

cout << in_stream ;

cout is an output stream and in_stream is an input stream, so they are essentially of incompatible types.

Once, you declare your streams, you need to "open" them. You can somewhat say that this will "link" your stream to a file. Every stream has a source and a destiny. So openning an input stream will link it to its source and openning an output stream will link it to its destiny. I need to stress out that you opened both streams to the same file:

It is more common to have an input file from which you are going to read data and an output file, where you are going to store data after processing it.

Once everything is set up, you can use out_stream just as you use cout for output. It works exactly the same way, the only difference is that instead of putting the data on the screen, it will put it in your file. And of course, using in_stream is exactly the same as using cin, except that you would read the data from the file instead of the keyboard (and thus, there will be no 'pause' when inputing data).

So for example let's say you wish to read the first line of your file:

My advise, start with a basic program to do one thing, such as open and read a file, once that is complete and you know it's working, move on to the next step.
Your next step might be to add your user input statements.
or, open your output file and make sure you can write to it.

Small steps will get you there safely with less chance to fall. If you want to leap and bound, expect to tumble.