I am trying to share data between two simultaneously running programs. I am writing the output of one program to a file named xpos.out and reading the data in it from an other program which is running simultaneously. The value in xpos.out changes each time. So when i try to read this in the next cylce i never get the updated value.
I am following a simple procedure:
In one program iam writing it to xpos.out and immidiately closing it. and in another program iam reading the data in xpos.out. Only the first value is getting repeated.
Any help regarding this would be highly regarded...