Hi all,
I have one application (processA) are writting one file.
And, i create another appliction (processB) who want to check the file if it's busy. I know on Window MFC side. I can use CFile* file->open(fileName,shareDenyWrite),if the function return 0,that mean the file is busy(processA is wrintting the file). But on Mac OS side. i try find some method, all fail.
1. use C : open(fileName, O_RDWR, O_EXLOCK);
2. use coreCarbon: FSOpenFork
3. use Cocoa: NSFileManager.
How can do? Any reply are welcome. thanks!!!
Ann