Is there a way to detect if a file is open in another application from MATLAB?
이전 댓글 표시
I have a problem reading a file and I would like to check if the file is already opened by another application before using load.
I have received access conflicts when I try to read a file with MATLAB while this file is written to by another application.
Any idea?
댓글 수: 2
Walter Roberson
2011년 2월 8일
Are you willing to restrict this question to MS Windows and access to either local drives or a shared drive on a Windows server? The answers get much more complicated in other cases.
quai20
2011년 2월 8일
채택된 답변
추가 답변 (1개)
Aurelien Queffurust
2011년 2월 8일
1 개 추천
Another strategy is to use a file as a semaphore.
This trick is used for example in this submission: Multicore - Parallel processing on multiple cores
카테고리
도움말 센터 및 File Exchange에서 MATLAB에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!