var
f : file of TYPE;
...
rewrite(f);
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.
Copyright © 1996, Thinkage Ltd.