Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Turbo Pascal - <b> append open file for append pp 200</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 APPEND                     Open File for Append                      pp 200

 Syntax:  Append (FileVar) ;

 Type:    Text File

 Form:    Procedure

 Purpose: Open file name Assigned to FileVar to append new data.

 Notes:   The file is opened and the file position pointer is moved to
          the end of the file.  The only operation allowed is the addition
          of new data to the end of the file.


 ----------------------------------------------------------------------------


 Usage:
       TYPE
          FileType = String [80]             ;   { Define record size  }
       VAR
          FileVar  : File of FileType        ;   { 80 byte record type }
       CONST
          FileName : String [8] = 'Name.Ext' ;   { Constant file name  }

       BEGIN
          Assign (FileVar,FileName)          ;   { Assign file name    }
          Append (FileVar)                   ;   { Open for append     }
       END.

See Also: Assign File Of Files Reset ReWrite Seek

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson