Selecting particular values from text document into variables

Hi all,

Well, sad to say that I am somehow a noob in C++ programming.

What I am doing is basically write a .txt document with certain messages followed by the values being input by the user upon running .exe and will be closed subsequently.

My question is, how would I be able to extract the values that was being inputted by the user?

Will greatly appreciate if anyone is able to share a light onto this.

Thanks!!
I could not really get what you want to do. Can you please explain it a bit? Do you want to read a .txt or write in it?
To read a text file.

For example, as shown below is a part of my text file;

Rotation Speed: 1
No. of integration time steps: 2




I would like to extract the value '1' and '2' respectively, which I can then use it for other purpose such as calculations etc.

Thanks!!!
Topic archived. No new replies allowed.