[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

8.2.7 File Types

Files are used to store data permanently, normally on hard drives or floppies. There are tree types of files available: text files, typed and untyped files.

Text files are used to store text in them, where typed files are used to store many entries of the same type in them, e.g. addresses. Text files and typed files are accessible by `Read' and `Write' operations and do not need the parameter `BlockSize' in `Reset' or `Rewrite'. On the other hand, untyped files are used to store any type of information in them but you need to use `BlockWrite' or `BlockRead' to store or retrieve data out of this file.

 
var
  F1: Text;   { a textfile }
  F2: file of Real;   { a typed filed used to store real values in it }
  F3: File;   { an untyped file }

See also

section 8.10.1 File Routines, section 9.305 Write, section 9.218 Read, section 9.27 BlockRead, section 9.28 BlockWrite, section 9.227 Reset, section 9.233 Rewrite



This document was generated by Frank Heckenbach on May, 10 2002 using texi2html