国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 學(xué)院 > 開發(fā)設(shè)計(jì) > 正文

文件與目錄

2019-11-18 18:14:41
字體:
供稿:網(wǎng)友

strPcopy(BaseDbName,A_BaseName);
gettemppath
  setlength(tmpFile,MAX_PATH);
  GetTempFileName(ExtractFilePath(application.ExeName),'',0,pchar(tmpFile));
==================================  目錄與文件  =======================================
uses FileCtrl;
(1) 判斷路徑是否存在
  function DirectoryExists(Name: string): Boolean; 

(2)對(duì)一個(gè)全路徑文件進(jìn)行分割
  PRocessPath (const EditText:string; var Drive:Char; var DirPart:string; var FilePart:string)

(3)創(chuàng)建一不存在的路徑
  function ForceDirectories(Dir: string): Boolean; 

(4) 選擇一個(gè)目錄
 function SelectDirectory(const Caption: string; const Root: WideString; out Directory: string): Boolean;
 function SelectDirectory(var Directory: string; Options: TSelectDirOpts; HelpCtx: Longint): Boolean;

uses Sysutils;
(1)function ExtractFileDrive(const FileName:string):string;    //取得路徑文件名中的驅(qū)動(dòng)器名
   function ExtractFileDir(const FileName: string): string;    //取得路徑文件名中的路徑名    (最后沒有"/")
   function ExtractFilePath(const FileName: string):string;    //取得路徑文件名中的路徑名    (最后 有 "/")
   function ExtractFileExt(const FileName: string): string;    //取得路徑文件名中的擴(kuò)展名    (.XXX)
   function ExtractFileName(const FileName: string):string;    //取得路徑文件名中的文件名    (AAA.XXX)
(2)function CreateDir(const Dir: string): Boolean;
   function GetCurrentDir: string;
   function RemoveDir(const Dir: string): Boolean;
   function SetCurrentDir(const Dir: string): Boolean;
   function ExpandFileName(const FileName: string): string;
(3) MKDir    chDir  GetDir   RmDir   DiskFree  DiskSize  FileSize
(4) fileGetAttr  fileSetAttr  fileAge  fileGetDate  fileSetDate  fileDateToDateTime  DateTimeToFileDate
(5) fileSearch   FindFirst    findNext  findClose   fileExists
(6) copyFile     MoveFile   Rename  RenameFile   ChangeFileExt  DeleteFile  Erase  Truncate
(7) AddignFile  Reset  ReWrite Append  CloseFile  FileOpen  fileCreate  fileClose
(8) Seek  filePos  Eof  Eoln  FileSeek  SeekEoln
(9) Read ReadLn  Write  writeln  FileRead  fileWrite  BlockRead  BlockWrite
    Flush(F)    


上一篇:網(wǎng)絡(luò)函數(shù)庫

下一篇:ADO帶密碼的數(shù)據(jù)連接、查詢一個(gè)記錄集、執(zhí)行一SQL語句

發(fā)表評(píng)論 共有條評(píng)論
用戶名: 密碼:
驗(yàn)證碼: 匿名發(fā)表
學(xué)習(xí)交流
熱門圖片

新聞熱點(diǎn)

疑難解答

圖片精選

網(wǎng)友關(guān)注

主站蜘蛛池模板: 济源市| 凤台县| 新营市| 成武县| 浠水县| 精河县| 稻城县| 天镇县| 哈尔滨市| 德庆县| 水城县| 麦盖提县| 张家界市| 县级市| 内丘县| 尉氏县| 定结县| 会宁县| 漳浦县| 塔河县| 乌拉特后旗| 肥乡县| 芜湖县| 南开区| 罗平县| 搜索| 雷州市| 瓦房店市| 祥云县| 保康县| 贡觉县| 滦南县| 郸城县| 庆阳市| 徐水县| 东山县| 德庆县| 自治县| 临安市| 鱼台县| 简阳市|