V
varlagas
Dear all,
I wonder if anyone of you guys out there could help me out with this:
I want to read a file, but only want to do that when another process
that is creating it is done creating it. Say it is an (external)
process A that creates the file and my process B that reads the file. I
want to somehow verify that when an attempt is made by B to read that
particular file in the file system, the file is not currently being
written to by process A.
A ----> writes ---> file <--- reads ---- B
Is there any way to do this in Java?
Many thanks!!!
Panagiotis.
I wonder if anyone of you guys out there could help me out with this:
I want to read a file, but only want to do that when another process
that is creating it is done creating it. Say it is an (external)
process A that creates the file and my process B that reads the file. I
want to somehow verify that when an attempt is made by B to read that
particular file in the file system, the file is not currently being
written to by process A.
A ----> writes ---> file <--- reads ---- B
Is there any way to do this in Java?
Many thanks!!!
Panagiotis.