主要有:
ChangFileExt(Const Filename,Extension:String):String
ExpandFileName(Const Filename:String):String;
ExtractFileDir
ExtractFileDrive
ExtractFileExt
ExtractFileName
......
太多了,买本书看吧,一般书中的附录中都有.
别忘了分!!!嘻嘻!!!

解决方案 »

  1.   

    msdn 讲得很详细了,看吧!!!
    up!!!!
      

  2.   

    呵呵~~写文本
    var  F1, F2: TextFile;
      Ch: Char;
    begin
      if OpenDialog1.Execute then begin
        AssignFile(F1, OpenDialog1.Filename);
        Reset(F1);
        if SaveDialog1.Execute then begin
          AssignFile(F2, SaveDialog1.Filename);
          Rewrite(F2);
          while not Eof(F1) do
          begin
            Read(F1, Ch);
            Write(F2, Ch);
          end;
          CloseFile(F2);
        end;
        CloseFile(F1);
      end;end;
    打开~读取~~关闭文件var   F: TextFile;
      S: string;
    begin
      if OpenDialog1.Execute then          { Display Open dialog box }
      begin
        AssignFile(F, OpenDialog1.FileName);   { File selected in dialog box }
        Reset(F);
        Readln(F, S);                          { Read the first line out of the file }
        Edit1.Text := S;                       { Put string in a TEdit control }
        CloseFile(F);
      end;
    end;
      

  3.   

    从delphi的帮助里粘出来的,给分给分, 哈哈 ^_^AssignFile procedureAssociates the name of an external file with a file variable.ChDir procedureChanges the current directory.CloseFile procedureTerminates the association between file variable and an external disk file (Delphi).CreateDir functionCreates a new directory.DeleteFile functionDeletes a file from disk.DirectoryExists functionDetermines whether a specified directory exists.DiskFree functionReturns the number of free bytes on a specified drive.DiskSize functionReturns the size, in bytes, of a specified drive.File mode constantsFile mode constants are used to open and close disk files.File open mode constantsFile open mode constants are used to control the access mode to a file or stream.FileClose procedureCloses a specified file.FileDateToDateTime functionConverts a DOS date-time value to TDateTime value.FileExists functionTests if a specified file exists.FileGetAttr functionReturns the file attributes of FileName.FileGetDate functionReturns a DOS date-time stamp for a specified file.FileOpen functionOpens a specified file using a specified access mode.FileRead functionReads a specified number of bytes from a file.FileSearch functionSearches a specified DOS path for a file.FileSeek functionPositions the current file pointer in a previously opened file.FileSetAttr functionSets the file attributes of a specified file.FileSetDate functionSets the DOS time stamp for a specified file.FileWrite functionWrites the contents of a buffer to the current position in a file.FindClose procedureReleases memory allocated by FindFirst.FindFirst functionSearches for the first instance of a file name with a given set of attributes in a specified directory.FindNext functionReturns the next entry matching the name and attributes specified in a previous call to FindFirst.ForceDirectories functionCreates all the directories along a directory path if they do not already exist.GetCurrentDir functionReturns the name of the current directory.GetDir procedureReturns the current directory for a specified drive.RemoveDir functionDeletes an existing empty directory.RenameFile functionChanges a file name.SetCurrentDir functionSets the current directory.
      

  4.   

    我尻!swazn_yj(燕子),分可以再加的吗? 何必出次言语. 你母亲的.!!!
      

  5.   

    怎样取得文件短名:
    var FileName:TFileName;
    begin
      FileName:='win.exe';
      怎样令FileName='win',要用文件操作函数.哪个函数呢? 请教.
    end;