hi everyone, i have a problem, i have one app which calls another java app using runtime functions. Ok the thing is that i need that one app will write in a file and the other one read and delete the lines read from the same file almost in a syncrhonous way, it means, both app use the same file but in different ways, anyone knows how to do it? Also I though it could be done with pipes but even not a clue. Thanks
Look into the NIO... If you need to work synchronously, you may have to work with memory mapepd files or just the 2 process should comminucate over a socket !