[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
Erase Deletes a File from Disk
Erase(var F : <file type>); [TP]
Deletes the file associated with F from the disk. Use Assign first to
associated F with a given file. If you have opened the file using
Reset, Rewrite, Append, or Truncate, you should call Close before
calling Erase.
F Any file type (text, data, untyped).
-------------------------------- Example ---------------------------------
Assign(F,'MYFILE.TMP'); { open temporary file }
Rewrite(F); { for writing }
... { do work }
Close(F); { close temp file }
Erase(F); { and delete }
See Also:
Assign
Close
Rename
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson