如下的不光是WORD,什么都可以打開
procedure openForShare(const fileNamee:string);
var
filehandle:integer;
begin
filehandle:=fileopen(filename,fropenwrite or fmShareDenynone);
if filehandle>0 then
{valid file halde}
else
{open erro:filehandle=neggative doos error code}
end;