read readln
write writeln

解决方案 »

  1.   

    Append procedurePrepares an existing file for adding text to the end.BlockRead procedureReads one or more records from an open file into a variable.BlockWrite procedureWrites one or more records from a variable to an open file.Eof functionTests whether the file position is at the end of a file.FileMode variableIndicates the access mode on typed and untyped files opened by the Reset class.FilePos functionReturns the current file position.FileSize functionReturns the size of a file in bytes or the number of records in a record file.IOResult functionReturns the status of the last I/O operation performed.Input variableSpecifies a read-only file associated with an operating system's standard input device.MkDir procedureCreates a new subdirectory.Output variableSpecifies a write-only file associated with standard output, usually the display.Rename procedureChanges the name of an external file.Reset procedureOpens an existing file.Rewrite procedureCreates a new file and opens it.RmDir procedureDeletes an empty subdirectory.Seek procedureMoves the current position of a file to a specified component.Truncate procedureDeletes all the records after the current file position.Write procedure (for typed files)Writes to a typed file.
      

  2.   

    port($xx):=num;
    variant:=port($xx);