I currently have two C++ programs. Program1 takes some input and prints to screen a float.
I can get Program2 to call Program1 using something like:
Currently, Program1's output goes to screen. Is it possible for Program2 to read Program1's output and use it?
The only way I can think to do this is to have Program1 print to a file and then have Program2 read the file. However, this seems like an inelegant solution. Can somebody recommend a better way of accomplishing my objective.
Thanks in advance.