RESET - set up file for reading.

Usage:

var
    f : file of TYPE;
  ...
reset(f);

Where:

f
is a variable of any valid file type. "f" must be associated with a file before "reset" is called. This means opening "f" with the "openf" function, or associating "f" with a file on the command line that invokes the program.

Description:

The "reset" procedure sets up a file for reading. This means that the file is "rewound" to its beginning, and that the first element in the file is read into the buffer variable "f^". If "f" is not empty, "eof(f)" becomes false. If "f" is empty, "eof(f)" will be true and the contents of "f^" will be undefined.

See Also:

expl pascal lib rewrite

expl pascal lib get

expl pascal lib openf

expl pascal lib eof

Copyright © 1996, Thinkage Ltd.