File

From Lazarus wiki
Revision as of 15:42, 16 June 2005 by Paulrobinson (talk)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

A file is either an input device, an output device, or a device which can do both input and output. A file may be a screen and/or keyboard, or it may be an area of storage on disk.

Generally, the standard Pascal language does not distinguish between types of files, treating all files the same, allowing them to be accessed via the read, readln, write and writeln standard procedures.

Enhanced versions of Pascal such as UCSD Pascal, Turbo Pascal, and, of course, FPC Pascal have added features to indicate that a file is specifically a screen or a disk file, and to allow for such functions as naming of disk files, random access, appending to the end and deleting of files as needed.