www.gusucode.com > mbcview 工具箱matlab源码程序 > mbcview/@cgproject/isfileopen.m

    function ret = isfileopen(P, File)
%ISFILEOPEN Indicate whether a file is already in use
%
%  ret=ISfILEOPEN(P,FILE)

%  Copyright 2000-2004 The MathWorks, Inc. and Ford Global Technologies, Inc.


[Newpath,Newfile] = fileparts(File); 
tmpfile = fullfile(Newpath,['~',Newfile,'_cage.tmp']);
ret = exist(tmpfile,'file');