随笔 - 2146  文章 - 19 评论 - 11846 阅读 - 1267万

随笔分类 -  文件操作及相关函数

上一页 1 2
文件管理类函数(2)
摘要://查找一个文件 FileSearch var FileName,Dir,s: string; begin FileName := 'notepad.exe'; Dir := 'c:\windows'; s := FileSearch(FileName,Dir); if s'' then ShowMessage(s) //c:\windows\notepad.ex... 阅读全文
posted @ 2007-12-12 17:22 万一 阅读(5993) 评论(3) 推荐(1) 编辑
文件管理类函数(1)
摘要://判断文件是否存在 FileExists var f: string; begin f := 'c:\temp\test.txt'; if not FileExists(f) then begin //如果文件不存在 end; end; //判断文件夹是否存在 DirectoryExists var dir: string; begin dir := '... 阅读全文
posted @ 2007-12-12 13:05 万一 阅读(8158) 评论(9) 推荐(3) 编辑

上一页 1 2


点击右上角即可分享
微信分享提示