All articles(网络文学目录) All Pictures(图片目录) All Softwares(软件目录)

 
delphi DeleteFile 函数删除硬盘中的文件

Writer: aaa Article type: Programming skills(编程技巧) Time: 2014/7/19 0:08:31 Browse times: 378 Comment times: 0

delphi DeleteFile 函数删除硬盘中的文件


Head photo

Go homepage
Upload pictures
Write articles

delphi DeleteFile 函数删除硬盘中的文件

4.DeleteFile 函数
DeleteFile 函数将一个文件从记录盘上删除,如果文件不存在或无法删除,则返回False。函数原型如下:
function DeleteFile(const FileName: string): Boolean;
实现删除一个文件的过程的代码如下:
if OpenDialog1.Execute then
if DeleteFile(OpenDialog1.FileName) then
ShowMessage(’删除文件成功’)
else
ShowMessage(’删除文件失败’);





There are 0 records,
Comment:
Must be registered users to comment(必须是注册用户才能发表评论)

Disclaimer Privacy Policy About us Site Map
Copyright ©2011-
uuhomepage.com, Inc. All rights reserved.