how to find whether the file is already open?

yogish

Registered
What is the function/api to find whether the file is already opened by another process/application?

-yogi
 
Cabon? Cocoa? Java? C? C++? Ruby? Perl? Python? php? Lisp? ADA? FoxPro? Visual Basic? Each would have their own function/API for listing that, but you didn't mention what programming language you're using.

If you want to use a UNIX program call, then you can simply use 'lsof'.
 
Thanks for the reply.

i have the file path and i need to know whether it is open by any other application/process.
i am looking for the function in C or Cocoa.
can u help me in this?

-Yogi.
 
Back
Top