Hi,

I would like to pass some values from a program to another program, in c++;

for example if in the first program i have a variable called x which changes its value every time, and I want to take this value and pass it to the variable called y, which is in the second program. Is there an easy way to do that ? I tried with sockets, but i'm not that skilled and I want to try an easier method. With files maybe ? Some code would help me a lot.

Note that x changes its value very quickly.

Thank you