急用!

解决方案 »

  1.   

    procedure Flush(var F: Text);DescriptionF is a text file variable.When a text file is opened for output using Rewrite or Append, Flush empties the file's buffer. This guarantees that all characters written to the file at that time have actually been written to the external file. Flush has no effect on files opened for input.Note: {$I+} handles run-time errors using exceptions. When using {$I-}, use IOResult to check for I/O errors.
      

  2.   

    function FileCreate(const FileName: string): Integer;DescriptionFileCreate creates a new file with the specified name. If the return value is positive, the function was successful and the value is the file handle of the new file. A return value of -1 indicates that an error occurred.Note: Use of the non-native Pascal file handlers such as FileCreate is not encouraged. These routines map to the Windows API functions and return file handles, not normal Pascal file variables. These are low-level file access routines. For normal file operations use AssignFile, Rewrite, and Reset instead.procedure FileClose(Handle: Integer);DescriptionFileClose closes a file given its handle. The handle is obtained when the file is opened using FileOpen or FileCreate.Note:  When working with Pascal file variables, use the CloseFile procedure instead.