Delphi 判断文件是否存在


本文整理自网络,侵删。

  if fileexists(path + Myuse.un + '.txt') then
        begin
          AllCookie.LoadFromFile(path + Myuse.un + '.txt');
        end
        else
        begin
          PostDoc1(Myuse.un, Myuse.PS, AllCookie);
          AllCookie.SaveToFile(path + Myuse.un + '.txt');
        end;
 

--------------------------------------------------------------------------------------------------------

fileexists('文件名.txt')  //判断文件是否存在

相关阅读 >>

Delphi获取千千静听歌词下载地址源码

Delphi 调用外部程序并等待其运行结束

Delphi中如何实现模糊查找文件

Delphi_关于null,nil

Delphi实现qq右下角弹出信息窗口

Delphi中分隔字符串函数的使用

Delphi操作unicode字符

Delphi整理三(窗体和基本组件)

Delphi取得网页源码内容

Delphi winapi: getdesktopwindow - 返回桌面窗口的句柄

更多相关阅读请进入《Delphi》频道 >>



打赏

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,您说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

分享从这里开始,精彩与您同在

评论

管理员已关闭评论功能...