随笔分类 -  IOUtils 单元

摘要:用 IOUtils 单元下的 TDirectory.GetFiles 获取文件列表太方便了; 下面的例子只是 TDirectory.GetFiles 的典型应用... unit Unit1; interface uses Windows, Messages, SysUtils, Variants, 阅读全文
posted @ 2024-05-31 09:17 熊大熊二 阅读(94) 评论(0) 推荐(0) 编辑
摘要:以后路径相关的处理, 用 IOUtils.TPath 就很方便了. //较常用的方法: TPath.GetTempPath; {获取临时文件夹路径} TPath.GetTempFileName; {获取一个临时文件名} TPath.GetPathRoot(); {提取盘符, 如: c:\} TPat 阅读全文
posted @ 2023-08-12 20:39 熊大熊二 阅读(122) 评论(0) 推荐(0) 编辑
摘要:转自万一 https://www.cnblogs.com/del/archive/2009/10/16/1584768.html 和 TDirectory.GetFiles 用法一样, TDirectory.GetDirectories 是用来获取子目录的. 另外还有 TDirectory.GetF 阅读全文
posted @ 2023-08-11 20:07 熊大熊二 阅读(72) 评论(0) 推荐(0) 编辑
摘要:用 IOUtils 单元下的 TDirectory.GetFiles 获取文件列表太方便了; 下面的例子只是 TDirectory.GetFiles 的典型应用... unit Unit1; interface uses Windows, Messages, SysUtils, Variants, 阅读全文
posted @ 2022-01-08 17:10 熊大熊二 阅读(280) 评论(0) 推荐(0) 编辑
摘要:Delphi 2010 新增功能:IOUtils单元:TPath的方法与属性 以后路径相关的处理, 用 IOUtils.TPath 就很方便了. //较常用的方法: TPath.GetTempPath; {获取临时文件夹路径} TPath.GetTempFileName; {获取一个临时文件名} T 阅读全文
posted @ 2021-02-26 10:21 熊大熊二 阅读(110) 评论(0) 推荐(0) 编辑

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