PUT - output to file.

Usage:

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

Where:

f
is a variable of any valid file type. "f" must be associated with an open file before "put" 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 "put" procedure appends the value of the buffer variable "f^" to the file associated with "f". This file must be open before "put" is called. It is also necessary for "eof(f)" to be true, i.e. for the output file to be at "end of file".

When "put" is finished, "eof(f)" will be true and the value of "f^" will be undefined.

See Also:

expl pascal lib get

expl pascal lib eof

Copyright © 1996, Thinkage Ltd.