本文整理自网络,侵删。
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 winapi: getdesktopwindow - 返回桌面窗口的句柄
更多相关阅读请进入《Delphi》频道 >>