C++ text file output...specifics
i attached my cpp file in this post
it is a farely simple application that involves a bunch of little equasions and calculations, except i want it to output d, h, x, and nd into a text file, in that order.
and then i want to be able to read d from the first line and h from the second...in another opengl related cpp that will render a drawing based on those four from the text file.
i have looked at a bunch of online sources but can't get any of the ofstream...stuff to work.
last question: in the cpp file that reads these 4 and renders an opengl drawing i would like to be able to have it refresh as i for example press enter. I have already activated the keyboard and such, lighting, and a pause key for stopping rotation, but how would i set a key to refresh/get updated values from the text file