[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 RESET                     Open File for Processing                    pp 94

 Syntax:  Reset (FileVar) ;

 Type:    File

 Form:    Procedure

 Purpose: Open disk file assigned to FileVar for reading.

 Notes:   File position pointer is reset to start of file.
          Text files opened with reset are read only.


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


 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 name to handle }
           Reset (FileVar)                    ;  { Open file handle      }
       END.

See Also: Assign File File Of Files ReWrite Reset
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson