REWRITE - set up file for writing.
Usage:
var
f : file of TYPE;
...
rewrite(f);
Where:
- f
- is a variable of any valid file type. "f" must
be associated with a file before "rewrite" 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 "rewrite" procedure sets up a file for writing.
This means that the file is "rewound" to its beginning
so that any write operations to the file will overwrite whatever
is currently there. Anything that was previously in the file will
be lost.
The "rewrite" procedure automatically sets
"eof(f)" to true.
See Also:
expl pascal lib reset
expl pascal lib put
expl pascal lib openf
expl pascal lib eof
Copyright © 1996, Thinkage Ltd.