Quote:> NNTP-Posting-Host: math.mps.ohio-state.edu
> I am working on several C programs which will access the same file.
> I am wondering if there is a way to check if a file is already opened
> by other program in a C/UNIX envi.
I think there are file locking routines (flock() ?), which can lock a file or
see if a file is locked. This is outside my realm of knowledge. I've just
seen it a couple of times. Hope this gives you a place to start...
Dept. of Physics, Rm 26-319 | Phone : (617) 253-4028 Office
Massachusetts Institute of Technology | (617) 253-3072 Lab
Cambridge, MA 02139 | (617) 236-4910 Home