August 5th, 2008, 08:01 AM
What is the function/api to find whether the file is already opened by another process/application?
August 5th, 2008, 08:42 AM
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'.
August 5th, 2008, 09:08 AM
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?