Read from a file which is actively writing : I have two programs one writes to a file continuously and i want the other program to read the file continuously but what is happening is my second program is only reading upto the data point which was written when the second code was executed and stops instead of continuosly reading.Is there any way to achieve the thing, basically i want the output of program1 to be used as input of program2 ,Is there any way to read and write in ram instead of file as disk read costs more time.