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?

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.

Will greatly appreciate for any help rendered!

Thanks!!
Topic archived. No new replies allowed.