【文件属性】:
文件名称:Delphi FileExists 判断文件是否存在的简单例子.rar
文件大小:6KB
文件格式:RAR
更新时间:2022-07-30 11:35:36
Delphi源码-文件操作
Delphi FileExists 判断文件是否存在的简单例子
完整的用法代码:
begin
if (Edit1.Text<>'') then
begin
if FileExists(Trim(Edit1.Text)) then
showMessage('存在')
else
ShowMessage('不存在');
end
else
showmessage('请输入文件的路径及名称。');
end;
【文件预览】:
codesc.net
----FileExists()
--------Project1.res(876B)
--------Unit1.dcu(4KB)
--------Unit1.dfm(928B)
--------Project1.cfg(461B)
--------Project1.dpr(188B)
--------Project1.dof(2KB)
--------Unit1.pas(713B)